CVE-2023-6004: Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname
CVE-2023-6004 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Medium
- CVSS base score
- 4.8 (NetApp), 4.8 (Red Hat)
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L· base score 4.8, scored by redhatAttack vector: local. Attack complexity: low. Privileges required: low. User interaction: required. Scope: unchanged. Confidentiality impact: low. Integrity impact: low. Availability impact: low.- Weakness
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
- EPSS
- 0.45% chance of exploitation in the next 30 days (39th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
- Fixed releases
- Red Hat: libssh-0:0.9.6-14.el8, libssh-0:0.10.4-13.el9, RHSA-2024:3233, RHSA-2024:2504
- Assigned by
- redhat (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2023-6004; each belongs to its advisory, not to every product listed. How records are collected and checked.
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.
Text from the CVE.org record (redhat).
How do I fix CVE-2023-6004?
Upgrade to a fixed release named by the vendor:
- Red Hat: libssh-0:0.9.6-14.el8, libssh-0:0.10.4-13.el9, RHSA-2024:3233, RHSA-2024:2504
- 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. (Red Hat)
- Workaround: 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. (CVE.org record)
Vendor advisories for CVE-2023-6004
NetApp
1 advisory- Advisory severityMedium4.8
Medium [CVE-2023-6004] libssh Vulnerability in NetApp Products
NTAP-20240223-0004Source published Source updated
Multiple NetApp products incorporate libssh. libssh versions 0.8.0 prior to 0.9.8 and 0.10.0 prior to 0.10.6 are susceptible to a vulnerability which when successfully exploited could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). NetApp states there is no workaround available at this time.
- Affected products in this advisory
- No product details extracted. Check the source bulletin.
- Source-reported affected versions
- 0.8.0
- 0.9.8
- 0.10.0
- 0.10.6
- Source-reported fixed versions
- No fixed-version detail extracted. This does not mean no fix exists.
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
Red Hat
1 advisory- Advisory severityMedium4.8
Medium [CVE-2023-6004] proxycommand/proxyjump features allow injection of malicious code through hostname
CVE-2023-6004Source published Source updated
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. Despite the potential severity of this issue, the requirement for user interaction to exploit the vulnerability has led to a low severity rating. As a precautionary measure, users are advised to sanitize hostname inputs as a mitigation strategy. Red Hat severity: Low — CVSS 4.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L). Weakness: CWE-74. Affected Red Hat products: Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 7. Will not fix / out of support: Red Hat Enterprise Linux 7. Red Hat…
- Affected products in this advisory
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 7
- Red Hat package: libssh
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- libssh-0:0.9.6-14.el8
- libssh-0:0.10.4-13.el9
- RHSA-2024:3233
- RHSA-2024:2504
- Mitigation guidance
- 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.
References
- CVE-2023-6004 recordCVE.org
- CVE-2023-6004 detailNVD
- RHSA-2024:2504vendor-advisory, x_refsource_redhat
- RHSA-2024:3233vendor-advisory, x_refsource_redhat
- access.redhat.com/security/cve/CVE-2023-6004vdb-entry, x_refsource_redhat
- RHBZ#2251110issue-tracking, x_refsource_redhat
- libssh.org/security/advisories/CVE-2023-6004.txt
Timeline
- CVE record published
- CVE record last updated
- First vendor advisory listed by VulniPulse
More NetApp advisories
CVE-2026-123862Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-114949Nov 20, 2026November 2026 MySQL Vulnerabilities in NetApp ProductsCVE-2026-123863Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123828Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123863Nov 20, 2026Node.js Vulnerability in NetApp ProductsCVE-2026-123868Nov 20, 2026Node.js Vulnerability in NetApp Products
Get an email when NetApp publishes the next one.
See NetApp's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.