CVE-2023-38408
Last modified
CVE-2023-38408 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 76.77% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Openbsd | Openssh | < 9.3 |
| Openbsd | Openssh | 9.3 |
| Fedoraproject | Fedora | 37 |
| Fedoraproject | Fedora | 38 |
References
- http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2023/07/20/1Exploit, Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2023/07/20/2Mailing List, Third Party Advisory
- https://news.ycombinator.com/item?id=36790196Issue Tracking, Patch
- https://security.gentoo.org/glsa/202307-01Third Party Advisory
- https://www.openssh.com/security.htmlVendor Advisory
- https://www.openssh.com/txt/release-9.3p2Release Notes
- https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txtExploit, Third Party Advisory
- http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2023/07/20/1Exploit, Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2023/07/20/2Mailing List, Third Party Advisory
- https://news.ycombinator.com/item?id=36790196Issue Tracking, Patch
- https://security.gentoo.org/glsa/202307-01Third Party Advisory
- https://www.openssh.com/security.htmlVendor Advisory
- https://www.openssh.com/txt/release-9.3p2Release Notes
- https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txtExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-38408?
How severe is CVE-2023-38408?
How do I fix CVE-2023-38408?
Are you affected by CVE-2023-38408?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
