{"id":"CVE-2023-6004","summary":"Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname","details":"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.","modified":"2026-11-27T21:45:37.915016839Z","published":"2024-01-03T17:01:38.672Z","related":["ALSA-2024:2504","ALSA-2024:3233","SUSE-SU-2024:0140-1","SUSE-SU-2024:0525-1","SUSE-SU-2024:0539-1","openSUSE-SU-2024:13638-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6004.json","unresolved_ranges":[{"extracted_events":[{"range":[{"fixed":"1.6.0-7"},{"fixed":"1.6.0-7"},{"fixed":"1.6.0-4"},{"fixed":"1.6.0-12"},{"fixed":"1.6.0-62"},{"fixed":"1.6.0-13"},{"fixed":"1.6.0-7"},{"fixed":"1.6.0-13"},{"fixed":"0:0.9.6-14.el8"},{"fixed":"0:0.9.6-14.el8"},{"fixed":"0:0.10.4-13.el9"},{"fixed":"0:0.10.4-13.el9"}],"source":"AFFECTED_FIELD","strategy":"InverseAffectedRanges"}]}],"cna_assigner":"redhat","cwe_ids":["CWE-74"]},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LZQVUHWVWRH73YBXUQJOD6CKHDQBU3DM/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MKQRBF3DWMWPH36LBCOBUTSIZRTPEZXB/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHBA-2024:3964"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2504"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:3233"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2023-6004"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6004.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6004"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240223-0004/"},{"type":"ADVISORY","url":"https://www.libssh.org/security/advisories/CVE-2023-6004.txt"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2251110"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/libssh/libssh-mirror","events":[{"introduced":"d66ea0b3b100664916cbab965e79a870e31ac7fe"},{"fixed":"d18bd233582a33f6768fe55148740fd6f9c3848c"},{"introduced":"7f6b3fab4e8d4b97e73d5ca60ddc5a3d0f5880d2"},{"fixed":"10e09e273f69e149389b3e0e5d44b8c221c2e7f6"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*","range":[{"introduced":"0.8.0"},{"fixed":"0.9.8"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*","range":[{"introduced":"0.10.0"},{"fixed":"0.10.6"}],"source":"CPE_RANGE"}]}}],"versions":["libssh-0.9.7","libssh-0.10.5","libssh-0.10.4","libssh-0.10.3","libssh-0.10.2","libssh-0.10.0","libssh-0.9.6","libssh-0.9.5","libssh-0.9.4","libssh-0.9.3","libssh-0.9.2","libssh-0.9.1","libssh-0.9.0","libssh-0.8.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-6004.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"}]}