CVE-2023-6004: Red Hat proxycommand/proxyjump features allow injection of malicious code through hostname
This Red Hat advisory covers CVE-2023-6004 in Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 and Red Hat Enterprise Linux 7.
Key facts
- Vendor rating
- Medium, CVSS 4.8
- 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, .
- CISA KEV
- Not listed (catalogue checked )
- Fixed in
- libssh-0:0.9.6-14.el8, libssh-0:0.10.4-13.el9, RHSA-2024:3233 and 1 more below
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
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. 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 fixing advisory: RHSA-2024:3233, RHSA-2024:2504.
Affected products named by the advisory: Red Hat package: libssh.
Text from the source record.
How to fix CVE-2023-6004
Upgrade to a fixed release named by Red Hat:
- libssh-0:0.9.6-14.el8
- libssh-0:0.10.4-13.el9
- RHSA-2024:3233
- RHSA-2024:2504
Vendor 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.
End-of-life dates for Red Hat Enterprise Linux
CVE-2023-6004 in other vendors' advisories
- NetApp: NTAP-20240223-0004, medium severity
More Red Hat Linux advisories
CVE-2026-111497Oct 22, 2026Out-of-Bounds Write in Google Brotli DecoderCVE-2026-109619Oct 21, 2026fatal error handling retains stale request state leading to use-after-freeCVE-2026-109618Oct 21, 2026OOM bailout during request parsing leads to memory corruption and RCECVE-2026-125350Nov 10, 2026Use after free in XMLCVE-2026-114713Nov 8, 2026Command injection via unescaped message tagCVE-2026-90436Nov 6, 2026Remote code execution via insecure deserialization of SOAP fault messages
Get an email when Red Hat RHEL & SELinux publishes the next one.
See Red Hat RHEL & SELinux'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.