CVE-2023-6004: Red Hat Enterprise Linux 8 · Injection
Affects Red Hat Enterprise Linux 8Source CVE Database V5
Not known to be exploited · CVSS 4.8 Medium.
Data as of 26 Oct 2026, 09:08 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 3 Jan 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
1. Apply official patches from Red Hat as soon as they become available to address the vulnerability in libssh. 2. Until patches are applied, restrict or disable the use of ProxyCommand and ProxyJump features in SSH client configurations where feasible. 3. Implement strict input validation and sanitization for any hostname parameters used in ProxyCommand or ProxyJump to prevent injection of malicious code. 4. Enforce least privilege principles to limit local user permissions, reducing the potential for exploitation by low-privileged users. 5. Educate users about the risks of connecting to untrusted hosts or using unverified SSH configurations that may trigger this vulnerability. 6. Monitor SSH logs and system behavior for unusual command executions or proxy usage patterns indicative of exploitation attempts. 7. Employ endpoint detection and response (EDR) tools to detect suspicious activities related to SSH command injections. 8. Review and harden SSH client configurations across the organization, ensuring that only necessary features are enabled and properly secured.
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.
References
- access.redhat.com/errata/RHSA-2024:2504 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:3233 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2023-6004 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2251110 (opens in a new tab)
- libssh.org/security/advisories/CVE-2023-6004.txt (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LZQVUHWVWRH73YBXUQJOD6CKHDQBU3DM/ (opens in a new tab)
- security.netapp.com/advisory/ntap-20240223-0004/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MKQRBF3DWMWPH36LBCOBUTSIZRTPEZXB/ (opens in a new tab)