CVE-2023-38408

Public Exploit

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.

Category

9.8
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 57.69% Top 5%
Vendor Advisory gentoo.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory openssh.com
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
https://news.ycombinator.com/item?id=36790196 patch issue tracking
https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent third party advisory
https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt third party advisory exploit
https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca patch
https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8 patch
https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d patch
https://www.openssh.com/txt/release-9.3p2 release notes
https://www.openssh.com/security.html vendor advisory
https://security.gentoo.org/glsa/202307-01 third party advisory vendor advisory
http://www.openwall.com/lists/oss-security/2023/07/20/1 mailing list third party advisory exploit
http://www.openwall.com/lists/oss-security/2023/07/20/2 third party advisory mailing list
http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html third party advisory vdb entry exploit
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/ vendor advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/ vendor advisory
https://security.netapp.com/advisory/ntap-20230803-0010/
https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html mailing list
http://www.openwall.com/lists/oss-security/2023/09/22/9 mailing list
http://www.openwall.com/lists/oss-security/2023/09/22/11 mailing list
https://support.apple.com/kb/HT213940
https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408

Frequently Asked Questions

What is the severity of CVE-2023-38408?
CVE-2023-38408 has been scored as a critical severity vulnerability.
How to fix CVE-2023-38408?
To fix CVE-2023-38408, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-38408 being actively exploited in the wild?
It is possible that CVE-2023-38408 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~58% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.