Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname

Summary

CVECVE-2023-6004
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-01-03 17:15:11 UTC
Updated2026-11-06 14:17:01 UTC
DescriptionA flaw was found in libssh. By utilizing the ProxyCommand or ProxyJump feature, users can exploit unchecked hostname syntax on the client. This issue may allow an attacker to inject malicious code into the command of the features mentioned through the hostname parameter.

Risk And Classification

Primary CVSS: v3.1 4.8 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

Problem Types: CWE-74 | CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary4.8MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
3.1[email protected]Secondary4.8MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
3.1CNACVSS4.8MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Libssh Libssh All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:0.9.6-14.el8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:0.9.6-14.el8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:0.10.4-13.el9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:0.10.4-13.el9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified

References

ReferenceSourceLinkTags
[SECURITY] Fedora 38 Update: libssh-0.10.6-2.fc38 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
bugzilla.redhat.com/show_bug.cgi af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking
www.libssh.org/security/advisories/CVE-2023-6004.txt af854a3a-2127-422b-91ae-364da2661108 www.libssh.org Mailing List
access.redhat.com/security/cve/CVE-2023-6004 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
access.redhat.com/errata/RHSA-2024:3233 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
lists.fedoraproject.org/archives/list/[email protected]/messag... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
security.netapp.com/advisory/ntap-20240223-0004 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
access.redhat.com/errata/RHSA-2024:2504 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Red Hat would like to thank Norbert Pocs (libssh) and [email protected] for reporting this issue. (en)

Additional Advisory Data

SourceTimeEvent
CNA2023-11-22T00:00:00.000ZReported to Red Hat.
CNA2023-12-18T00:00:00.000ZMade public.

Workarounds

CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Legacy QID Mappings

  • 200060 Ubuntu Security Notification for libssh Vulnerabilities (USN-6592-1)
  • 200095 Ubuntu Security Notification for libssh Vulnerabilities (USN-6592-2)
  • 285088 Fedora Security Update for libssh (FEDORA-2023-0733306be9)
  • 506112 Alpine Linux Security Update for libssh
  • 6000408 Debian Security Update for libssh (DSA 5591-1)
  • 673335 EulerOS Security Update for libssh (EulerOS-SA-2024-1316)
  • 673381 EulerOS Security Update for libssh (EulerOS-SA-2024-1338)
  • 673472 EulerOS Security Update for libssh (EulerOS-SA-2024-1197)
  • 673750 EulerOS Security Update for libssh (EulerOS-SA-2024-1216)
  • 673785 EulerOS Security Update for libssh (EulerOS-SA-2024-1177)
  • 674082 EulerOS Security Update for libssh (EulerOS-SA-2024-1238)
  • 710817 Gentoo Linux libssh Multiple Vulnerabilities (GLSA 202312-16)
  • 755806 SUSE Enterprise Linux Security Update for libssh (SUSE-SU-2024:0539-1)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report