CVE-2023-6004
Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname
Reported by redhat · Published January 3, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libssh | Wolfi | 0.10.6-r0 |
| libssh | Alpine | 0.10.6-r0 |
| libssh | Chainguard | 0.10.6-r0 |
| libssh | libssh | 0.10.6, 0.9.8 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.9.6-14.el8 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.9.6-14.el8 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-13.el9 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-13.el9 |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.9.6-14.el8 |
| wolfi | libssh | 0 |
| alpine | libssh | 0 |
| chainguard | libssh | 0 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-13.el9 |
| Red Hat | Red Hat Enterprise Linux 7 |
Timeline
- Jan 3, 2024 CVE Published
- Jan 10, 2024 EPSS Score (30 in total, the first dated here)
- Feb 28, 2024 PoC Published
- Oct 5, 2024 Coalition ESS Score (16 in total, the first dated here)
- Jun 2, 2026 Security Advisory (18 in total, the first dated here)
- Nov 7, 2026 Distribution Patch (15 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-6004
vulnetix vdb fixes CVE-2023-6004
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-6004/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2024:2504 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:3233 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2251110 issue-trackingx_refsource_REDHAT
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LZQVUHWVWRH73YBXUQJOD6CKHDQBU3DM/ url
- https://security.netapp.com/advisory/ntap-20240223-0004/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MKQRBF3DWMWPH36LBCOBUTSIZRTPEZXB/ url