{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-38408","id":"CVE-2023-38408","title":"The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to re…","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.","descriptionLong":"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.","published":"2023-07-20T00:00:00.000Z","updated":"2026-11-11T13:28:46.577710155Z","reserved":"2023-07-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-428"],"aliases":[],"references":[{"url":"https://news.ycombinator.com/item?id=36790196","tags":["x_transferred","Issue Tracking","Patch","web"]},{"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","Third Party Advisory","article"]},{"url":"https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca","tags":["x_transferred","Patch","fix"]},{"url":"https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8","tags":["x_transferred","Patch","fix"]},{"url":"https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d","tags":["x_transferred","Patch","fix"]},{"url":"https://www.openssh.com/txt/release-9.3p2","tags":["x_transferred","Release Notes","web"]},{"url":"https://www.openssh.com/security.html","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://security.gentoo.org/glsa/202307-01","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/20/1","tags":["mailing-list","x_transferred","Exploit","Mailing List","Third Party Advisory","article"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/20/2","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article"]},{"url":"http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230803-0010/","tags":["x_transferred","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html","tags":["mailing-list","x_transferred","article"]},{"url":"http://www.openwall.com/lists/oss-security/2023/09/22/9","tags":["mailing-list","x_transferred","article"]},{"url":"http://www.openwall.com/lists/oss-security/2023/09/22/11","tags":["mailing-list","x_transferred","article"]},{"url":"https://support.apple.com/kb/HT213940","tags":["x_transferred","web"]},{"url":"https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408","tags":["x_transferred","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38408.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38408","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.797,"epssPercentile":0.99614,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-38408","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38408","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-38408","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-38408","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["openssh"],"critical":["CVSS 9.8 in a widely used technology","EPSS 80% with CVSS 9.8"],"attention":null}