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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-01-03 · Modified: 2026-11-27
- Aliases: UBUNTU-CVE-2023-6004, DEBIAN-CVE-2023-6004, CGA-f2q7-9hc5-4rp7, CGA-mjpc-c9pw-3wwv, ALPINE-CVE-2023-6004
- Record: https://cvemate.com/vulnerability/CVE-2023-6004 · JSON: https://cvemate.com/vulnerability/CVE-2023-6004/json

## Description

```text
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.
```

## Signals

- CVSS: 4.8 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- EPSS: 0.594%, percentile 49.857%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libssh (Alpine Linux): ≥ 0.8.0, \< 0.10.6-r0 \| ≥ 0.10.0, \< 0.10.6-r0
- chainguard libssh (Chainguard): \< 0.10.6-r0
- wolfi libssh (Wolfi): \< 0.10.6-r0
- debian libssh (Debian): \< 0.10.6-0+deb12u1 \| \< 0.10.6-1
- ubuntu libssh (Ubuntu): \< 0.6.3-4.3ubuntu0.6+esm1 \| \< 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 \| \< 0.9.3-2ubuntu2.5 \| \< 0.9.6-2ubuntu0.22.04.3
- fedoraproject fedora: 38
- libssh libssh: ≥ 0.8.0, \< 0.9.8 \| ≥ 0.10.0, \< 0.10.6
- redhat enterprise\_linux: 8.0 \| 9.0

## References

- <https://access.redhat.com/errata/RHSA-2024:2504>
- <https://access.redhat.com/errata/RHSA-2024:3233>
- <https://access.redhat.com/security/cve/CVE-2023-6004>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2251110>
- <https://www.libssh.org/security/advisories/CVE-2023-6004.txt>
- <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://ubuntu.com/security/CVE-2023-6004>
- <https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html>
- <https://ubuntu.com/security/notices/USN-6592-1>
- <https://ubuntu.com/security/notices/USN-6592-2>
- <https://www.cve.org/CVERecord?id=CVE-2023-6004>
- <https://security-tracker.debian.org/tracker/CVE-2023-6004>
- <https://access.redhat.com/downloads/content/package-browser/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6004.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-6004>
- <https://security.alpinelinux.org/vuln/CVE-2023-6004>
- <https://access.redhat.com/errata/RHBA-2024:3964>

---

Data as of 2026-12-05T09:13:48.020Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
