{"id":"CVE-2023-38408","published":"2023-07-20T00:00:00Z","modified":"2026-10-14T23:35:00Z","title":"The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to…","vendor":null,"product":null,"tier":"core","eol":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-10-15T17:36:21.400489Z","from":"CISA ADP","provenance":"source"},"description":{"text":"The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.","provenance":"source","from":"CVE.org"},"summary":{"text":"The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 relies on an insufficiently trustworthy library search path, which is the flaw. An attacker controlling a system to which an agent is forwarded can achieve remote code execution, provided the agent is forwarded to that attacker-controlled system and no authentication is required beyond that forwarding.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:11:32Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.797,"percentile":0.99615,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2023-07-26","exploitedFirstSeen":"2023-07-26","ransomware":false,"evidence":[{"url":"https://sosintel.co.uk/flash-alert-cves-of-note-being-exploited-in-the-wild/","date":"2023-07-26"},{"url":"https://thorcert.notion.site/TTPs-11-Operation-An-Octopus-d875862055ca4b7b815b5e496b219671","date":"2024-07-01"},{"url":"https://content.kaspersky-labs.com/fm/site-editor/33/3318ec849851138088d24f26d236f469/source/irreport.pdf","date":"2025-03-12"}],"evidenceTotal":3,"provenance":"source"},"exploited":true,"otx":{"pulseCount":15,"pulses":[{"name":"131.186.60.123","url":"https://otx.alienvault.com/pulse/68dce1558c830411203e8d83","created":"2025-10-01"},{"name":"46.101.105.191   http://xrgfyjiwp9jhuz.potentialconnection.co.in/","url":"https://otx.alienvault.com/pulse/680d00977b295346e9bce0c2","created":"2025-04-26"},{"name":"216.70.102.87  accessdomain.com   64.207.129.182","url":"https://otx.alienvault.com/pulse/67eca9b9739aeabdab40759b","created":"2025-04-02"},{"name":"Eksploatacja: Java/CVE-2010-0094/CVE-2008-5353/CVE-2012-0507","url":"https://otx.alienvault.com/pulse/6711a4e17a1f3bd1039122b6","created":"2024-10-17"},{"name":"[GS-435] Mirai Botnet IOCs - SEC-1275-1","url":"https://otx.alienvault.com/pulse/660bae6d1a3695f8a786ca16","created":"2024-04-02"},{"name":"[GS-434] Mirai Botnet IOCs - SEC-1275-1","url":"https://otx.alienvault.com/pulse/660bae50f05c227e0a839a7a","created":"2024-04-02"},{"name":"[GS-433] Mirai Botnet IOCs - SEC-1275-1","url":"https://otx.alienvault.com/pulse/660bae280cbb74308e5172eb","created":"2024-04-02"},{"name":"[GS-432] Mirai Botnet IOCs - SEC-1275-1","url":"https://otx.alienvault.com/pulse/660bae06ba90fe65bf48380c","created":"2024-04-02"},{"name":"[GS-431] Mirai Botnet IOCs - SEC-1275-1","url":"https://otx.alienvault.com/pulse/660baded04c397324bb9e91a","created":"2024-04-02"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - October 2023","url":"https://otx.alienvault.com/pulse/6531fa57b7edb6c002b800e5","created":"2023-10-20"}],"provenance":"machine"},"cwes":[{"id":"CWE-428","name":"Unquoted Search Path or Element"}],"references":[{"url":"https://news.ycombinator.com/item?id=36790196","tags":[]},{"url":"https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent","tags":[]},{"url":"https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt","tags":[]},{"url":"https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca","tags":[]},{"url":"https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8","tags":[]},{"url":"https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d","tags":[]},{"url":"https://www.openssh.com/txt/release-9.3p2","tags":[]},{"url":"https://www.openssh.com/security.html","tags":[]},{"url":"https://security.gentoo.org/glsa/202307-01","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/20/1","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/20/2","tags":["mailing-list"]},{"url":"http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230803-0010/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2023/09/22/9","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2023/09/22/11","tags":["mailing-list"]},{"url":"https://support.apple.com/kb/HT213940","tags":[]},{"url":"https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2023-42225","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-42225","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":9,"skipped":1,"earliest":"2023-08-09","earliestUrl":"https://github.com/kali-mx/CVE-2023-38408","repos":[{"name":"kali-mx/CVE-2023-38408","url":"https://github.com/kali-mx/CVE-2023-38408","stars":54,"created":"2023-08-09"},{"name":"LucasPDiniz/CVE-2023-38408","url":"https://github.com/LucasPDiniz/CVE-2023-38408","stars":45,"created":"2023-11-09"},{"name":"TX-One/CVE-2023-38408","url":"https://github.com/TX-One/CVE-2023-38408","stars":7,"created":"2025-04-19"},{"name":"Adel2411/cve-2023-38408","url":"https://github.com/Adel2411/cve-2023-38408","stars":5,"created":"2025-07-16"},{"name":"classic130/CVE-2023-38408","url":"https://github.com/classic130/CVE-2023-38408","stars":3,"created":"2024-01-07"}]},"first":{"date":"2023-08-09","source":"PoC-in-GitHub","url":"https://github.com/kali-mx/CVE-2023-38408"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2023-07-20","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2023-38408","provenance":"source"},{"date":"2023-07-26","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://sosintel.co.uk/flash-alert-cves-of-note-being-exploited-in-the-wild/","provenance":"source"},{"date":"2023-08-09","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/kali-mx/CVE-2023-38408","provenance":"source"}],"speed":{"daysToPublicExploit":20,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":69.5,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1214 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.92,"detail":"percentile 0.9961"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 9 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":2.73,"detail":"15 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-cve-2016-10009-family-cve-2016-10009","parents":[{"from":"CVE-2016-10009","to":"CVE-2023-38408","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.","from":"CVE.org","in":"CVE-2023-38408"},{"kind":"same-code","provenance":"machine","files":["usr.bin/ssh/ssh-agent.1","usr.bin/ssh/ssh-agent.c"],"commits":["https://github.com/openbsd/src/commit/9476ce1dd37d3c3218d5640b74c34c65e5f4efe5","https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca","https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8"],"basis":"shared function","functions":["main","process_add_smartcard_key"]}]}]}}