CVE-2023-38408The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution…
- 9.8CriticalCVSS base score
- 79.7%Exploitation in 30 daysEPSS · top 0.4% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By mitre
- 3 days later
· 3 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 79.7% · top 0.4% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
n/a
- affected n/a
References
References21
- https://news.ycombinator.com/item?id=36790196 (opens in a new tab)x_transferred
- https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent (opens in a new tab)x_transferred
- https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt (opens in a new tab)x_transferred
- https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca (opens in a new tab)x_transferred
- https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8 (opens in a new tab)x_transferred
- https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d (opens in a new tab)x_transferred
- https://www.openssh.com/txt/release-9.3p2 (opens in a new tab)x_transferred
- https://www.openssh.com/security.html (opens in a new tab)x_transferred
- GLSA-202307-01 (opens in a new tab)vendor-advisoryx_transferred
- [oss-security] 20230719 Re: CVE-2023-38408: Remote Code Execution in OpenSSH's forwarded ssh-agent (opens in a new tab)mailing-listx_transferred
- [oss-security] 20230720 Re: Announce: OpenSSH 9.3p2 released (opens in a new tab)mailing-listx_transferred
- http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html (opens in a new tab)x_transferred
- FEDORA-2023-878e04f4ae (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2023-79a18e1725 (opens in a new tab)vendor-advisoryx_transferred
- https://security.netapp.com/advisory/ntap-20230803-0010/ (opens in a new tab)x_transferred
- [debian-lts-announce] 20230817 [SECURITY] [DLA 3532-1] openssh security update (opens in a new tab)mailing-listx_transferred
- [oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list (opens in a new tab)mailing-listx_transferred
- [oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list (opens in a new tab)mailing-listx_transferred
- https://support.apple.com/kb/HT213940 (opens in a new tab)x_transferred
- https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408 (opens in a new tab)x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-42225 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-38408)Record last updated .