{"id":"CVE-2023-38408","state":"PUBLISHED","title":"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-con","description":"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.","publishedAt":"2023-07-20T00:00:00.000Z","updatedAt":"2026-10-14T23:35:00.114Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://news.ycombinator.com/item?id=36790196","https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent","https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt","https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca","https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8","https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d","https://www.openssh.com/txt/release-9.3p2","https://www.openssh.com/security.html","https://security.gentoo.org/glsa/202307-01","http://www.openwall.com/lists/oss-security/2023/07/20/1","http://www.openwall.com/lists/oss-security/2023/07/20/2","http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/","https://security.netapp.com/advisory/ntap-20230803-0010/","https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html","http://www.openwall.com/lists/oss-security/2023/09/22/9","http://www.openwall.com/lists/oss-security/2023/09/22/11","https://support.apple.com/kb/HT213940","https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408","https://cert-portal.siemens.com/productcert/html/ssa-398330.html"],"weaknesses":["CWE-428"],"ingestedAt":"2026-10-29T20:06:08.715Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/38xxx/CVE-2023-38408.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-38408","state":"PUBLISHED","datePublished":"2023-07-20T00:00:00.000Z","dateUpdated":"2026-10-14T23:35:00.114Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2023-07-17T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://news.ycombinator.com/item?id=36790196"},{"url":"https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent"},{"url":"https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt"},{"url":"https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca"},{"url":"https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8"},{"url":"https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d"},{"url":"https://www.openssh.com/txt/release-9.3p2"},{"url":"https://www.openssh.com/security.html"},{"url":"https://security.gentoo.org/glsa/202307-01","name":"GLSA-202307-01","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/20/1","name":"[oss-security] 20230719 Re: CVE-2023-38408: Remote Code Execution in OpenSSH's forwarded ssh-agent","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/20/2","name":"[oss-security] 20230720 Re: Announce: OpenSSH 9.3p2 released","tags":["mailing-list"]},{"url":"http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/","name":"FEDORA-2023-878e04f4ae","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/","name":"FEDORA-2023-79a18e1725","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230803-0010/"},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html","name":"[debian-lts-announce] 20230817 [SECURITY] [DLA 3532-1] openssh security update","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2023/09/22/9","name":"[oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2023/09/22/11","name":"[oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list","tags":["mailing-list"]},{"url":"https://support.apple.com/kb/HT213940"},{"url":"https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408"}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2024-04-04T05:50:59.479Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://news.ycombinator.com/item?id=36790196","tags":["x_transferred"]},{"url":"https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent","tags":["x_transferred"]},{"url":"https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt","tags":["x_transferred"]},{"url":"https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca","tags":["x_transferred"]},{"url":"https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8","tags":["x_transferred"]},{"url":"https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d","tags":["x_transferred"]},{"url":"https://www.openssh.com/txt/release-9.3p2","tags":["x_transferred"]},{"url":"https://www.openssh.com/security.html","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202307-01","name":"GLSA-202307-01","tags":["vendor-advisory","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/20/1","name":"[oss-security] 20230719 Re: CVE-2023-38408: Remote Code Execution in OpenSSH's forwarded ssh-agent","tags":["mailing-list","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/20/2","name":"[oss-security] 20230720 Re: Announce: OpenSSH 9.3p2 released","tags":["mailing-list","x_transferred"]},{"url":"http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/","name":"FEDORA-2023-878e04f4ae","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/","name":"FEDORA-2023-79a18e1725","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230803-0010/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html","name":"[debian-lts-announce] 20230817 [SECURITY] [DLA 3532-1] openssh security update","tags":["mailing-list","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2023/09/22/9","name":"[oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list","tags":["mailing-list","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2023/09/22/11","name":"[oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list","tags":["mailing-list","x_transferred"]},{"url":"https://support.apple.com/kb/HT213940","tags":["x_transferred"]},{"url":"https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T17:39:13.525Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-10-15T17:36:21.400489Z","id":"CVE-2023-38408","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-428","type":"CWE","lang":"en","description":"CWE-428 Unquoted Search Path or Element"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-15T18:33:21.591Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-14T23:35:00.114Z"},"x_adpType":"supplier"}]}}}