Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname
Summary
| CVE | CVE-2023-6004 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-01-03 17:15:11 UTC |
| Updated | 2026-11-06 14:17:01 UTC |
| Description | A 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
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 4.8 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
| 3.1 | [email protected] | Secondary | 4.8 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
| 3.1 | CNA | CVSS | 4.8 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
RequiredScope
UnchangedConfidentiality
LowIntegrity
LowAvailability
LowCVSS: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)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| 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
| Reference | Source | Link | Tags |
|---|---|---|---|
| [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
| Source | Time | Event |
|---|---|---|
| CNA | 2023-11-22T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2023-12-18T00:00:00.000Z | Made 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)