Original 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.
Affected software
- OpenSSH < 9.3= 9.3 Fixed in: 9.3 exact match
Details
- Published
- 2023-07-20
- Last modified
- 2026-10-15
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-428
- EPSS (30-day exploit probability)
- 79.70% (percentile 100)
References
- cve.org/CVE-2023-38408
- nvd.nist.gov/vuln/detail/CVE-2023-38408
- packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.htm...
- www.openwall.com/lists/oss-security/2023/07/20/1
- www.openwall.com/lists/oss-security/2023/07/20/2
- www.openwall.com/lists/oss-security/2023/09/22/11
- www.openwall.com/lists/oss-security/2023/09/22/9
- blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-exec...
- github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8
- github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d
- github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca
- lists.debian.org/debian-lts-announce/2023/08/msg00021.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R...
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.