# CVE-2023-6004: Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname

- Severity: Medium 4.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-01-03T17:01:38.672Z
- Modified: 2026-11-27T03:17:01.020Z
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- libssh: no versions given (not affected: from 0:0.9.6-14.el8 before *; from 0:0.10.4-13.el9 before *)
- libssh libssh: from 0.8.0 before 0.9.8; from 0.10.0 before 0.10.6
- fedoraproject fedora: 38
- redhat enterprise_linux: 8.0; 9.0

## Every score

- redhat: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`

## References

- <https://access.redhat.com/errata/RHSA-2024:2504> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:3233> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-6004> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2251110> (issue-tracking)
- <https://www.libssh.org/security/advisories/CVE-2023-6004.txt> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LZQVUHWVWRH73YBXUQJOD6CKHDQBU3DM/>
- <https://security.netapp.com/advisory/ntap-20240223-0004/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MKQRBF3DWMWPH36LBCOBUTSIZRTPEZXB/>
- <https://access.redhat.com/errata/RHBA-2024:3964>

## Sources

- CVE List: [CVE-2023-6004](https://www.cve.org/CVERecord?id=CVE-2023-6004), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2023-6004](https://nvd.nist.gov/vuln/detail/CVE-2023-6004), Public domain, modified 2026-11-27

---

Page: https://cve.day/CVE-2023-6004 · Whole record: https://cve.day/CVE-2023-6004.json · Rebuilt by cve.day 2026-11-27T03:17:32.154Z
