CVE-2023-38408Openbsd Openssh
NVDCVSS scored by NVD (NIST)
Vulnerability Summary
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.
CVSS v3.1 Base Metrics — Score 9.8 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Openbsd Openssh < 9.3
- Openbsd Openssh
- Fedoraproject Fedora
- Openbsd Openssh 9.3
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run Openbsd Openssh and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Jul 20, 2023Published
- Oct 15, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Openbsd Openssh CVEsYou are reading CVE-2023-38408. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsRelated Coverage
External References
- Exploithttp://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html
- Exploithttp://www.openwall.com/lists/oss-security/2023/07/20/1
- Advisoryhttp://www.openwall.com/lists/oss-security/2023/07/20/2
- Advisoryhttp://www.openwall.com/lists/oss-security/2023/09/22/11
- Advisoryhttp://www.openwall.com/lists/oss-security/2023/09/22/9
- Advisoryhttps://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent
- Patchhttps://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8
- Patchhttps://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d
- Patchhttps://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca
- Referencehttps://lists.debian.org/debian-lts-announce/2023/08/msg00021.html
- Referencehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/
- Referencehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/
- Patchhttps://news.ycombinator.com/item?id=36790196
- Advisoryhttps://security.gentoo.org/glsa/202307-01
- Vendor Advisoryhttps://security.netapp.com/advisory/ntap-20230803-0010/
- Referencehttps://support.apple.com/kb/HT213940
- Vendor Advisoryhttps://www.openssh.com/security.html
- Referencehttps://www.openssh.com/txt/release-9.3p2
- Exploithttps://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt
- Referencehttps://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408
- Exploithttp://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html
- Exploithttp://www.openwall.com/lists/oss-security/2023/07/20/1
- Advisoryhttp://www.openwall.com/lists/oss-security/2023/07/20/2
- Advisoryhttp://www.openwall.com/lists/oss-security/2023/09/22/11
- Advisoryhttp://www.openwall.com/lists/oss-security/2023/09/22/9
- Advisoryhttps://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent
- Patchhttps://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8
- Patchhttps://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d
- Patchhttps://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca
- Referencehttps://lists.debian.org/debian-lts-announce/2023/08/msg00021.html
- Referencehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/
- Referencehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/
- Patchhttps://news.ycombinator.com/item?id=36790196
- Advisoryhttps://security.gentoo.org/glsa/202307-01
- Vendor Advisoryhttps://security.netapp.com/advisory/ntap-20230803-0010/
- Referencehttps://support.apple.com/kb/HT213940
- Vendor Advisoryhttps://www.openssh.com/security.html
- Referencehttps://www.openssh.com/txt/release-9.3p2
- Exploithttps://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt
- Referencehttps://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408
- Referencehttps://cert-portal.siemens.com/productcert/html/ssa-398330.html
Data last checked: Nov 19, 2026 04:06 UTC