{"schemaVersion":3,"id":"CVE-2023-6004","aliases":["UBUNTU-CVE-2023-6004","DEBIAN-CVE-2023-6004","CGA-f2q7-9hc5-4rp7","CGA-mjpc-c9pw-3wwv"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-01-03T17:01:38.672Z","modified":"2025-11-07T00:19:08.335Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.8,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":3.3,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":3.3,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":3.3,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":3.3,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00449,"percentile":0.37728,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00449},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00449,"percentile":0.37728}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00449,"percentile":0.37728}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","description":"The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/74.html"}],"affected":[{"vendor":"chainguard","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/libssh","purlType":"apk","versions":[{"text":"< 0.10.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.10.6-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/libssh","purlType":"apk","versions":[{"text":"< 0.10.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.10.6-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libssh","purlType":"deb","versions":[{"text":"< 0.10.6-0+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.10.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.10.6-0+deb12u1 | < 0.10.6-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libssh","purlType":"deb","versions":[{"text":"< 0.6.3-4.3ubuntu0.6+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 0.9.3-2ubuntu2.5","noFixRecorded":false,"fixedIn":null},{"text":"< 0.9.6-2ubuntu0.22.04.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"38","noFixRecorded":false,"fixedIn":null}],"versionsText":"38","eol":{"isEol":true,"eolDate":"2024-05-21T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"38","label":"38","eolFrom":"2024-05-21T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"libssh","product":"libssh","name":"libssh","label":"libssh","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.8.0, < 0.9.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.10.0, < 0.10.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.8.0, < 0.9.8 | ≥ 0.10.0, < 0.10.6","eol":null,"hubHref":"/vendor/libssh/libssh"},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0","eol":{"isEol":false,"eolDate":"2029-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Upcoming ELS)","eolFrom":"2029-05-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"8.10"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:2504","label":"access.redhat.com/errata/RHSA-2024:2504","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:3233","label":"access.redhat.com/errata/RHSA-2024:3233","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-6004","label":"access.redhat.com/security/cve/CVE-2023-6004","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","Advisory","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2251110","label":"bugzilla.redhat.com/show_bug.cgi?id=2251110","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT"]},{"url":"https://www.libssh.org/security/advisories/CVE-2023-6004.txt","label":"www.libssh.org/security/advisories/CVE-2023-6004.txt","hostname":"www.libssh.org","tags":["REPORT","Advisory","Mailing List"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LZQVUHWVWRH73YBXUQJOD6CKHDQBU3DM/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["X Transferred","WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20240223-0004/","label":"security.netapp.com/advisory/ntap-20240223-0004/","hostname":"security.netapp.com","tags":["X Transferred","Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MKQRBF3DWMWPH36LBCOBUTSIZRTPEZXB/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2023-6004","label":"ubuntu.com/security/CVE-2023-6004","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html","label":"vin01.github.io/piptagole/…","hostname":"vin01.github.io","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6592-1","label":"ubuntu.com/security/notices/USN-6592-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-6592-2","label":"ubuntu.com/security/notices/USN-6592-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-6004","label":"www.cve.org/CVERecord?id=CVE-2023-6004","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-6004","label":"security-tracker.debian.org/tracker/CVE-2023-6004","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://access.redhat.com/downloads/content/package-browser/","label":"access.redhat.com/downloads/content/package-browser/","hostname":"access.redhat.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6004.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6004.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6004","label":"nvd.nist.gov/vuln/detail/CVE-2023-6004","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]}],"lineage":{"upstream":[],"downstream":["DSA-5591-1","MGASA-2023-0357","OPENSUSE-SU-2024:13638-1","RHSA-2024:2504","RHSA-2024:3233","SUSE-SU-2024:0140-1","SUSE-SU-2024:0525-1","SUSE-SU-2024:0539-1","USN-6592-1","USN-6592-2"],"duplicates":[],"related":["CGA-FMM2-RPG9-4WCR","CGA-XRCG-FX33-XW78","OPENSUSE-SU-2024:13638-1","SUSE-SU-2024:0140-1","SUSE-SU-2024:0525-1","SUSE-SU-2024:0539-1","USN-6592-1","USN-6592-2"]},"timeline":[{"kind":"published","date":"2024-01-03T17:01:38.672Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-07T00:19:08.335Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":19,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:38:41.343Z","stale":false,"partial":false}}