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.
CVE-2023-38408
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2023-07-20. NVD baseline CVSS 9.8; sources differ by 0.0.
- 5,506 internet-exposed hosts are running an affected version right now
- High exploitation likelihood — EPSS 80%
A fix is available — apply it.
5,506 internet-exposed hosts are running an affected version of CVE-2023-38408 right now.
EchelonGraph is the only CVE feed that fuses live vulnerability intelligence with its own live internet-exposure radar — so you see not just that a CVE is exploited, but how much of the internet is exposed to it right now.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EG Risk
- 91(Track)EG Risk 91/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation80% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 99.6%
- KEV
- Not listed
Published
July 20, 2023
Last Modified
November 21, 2024
Advisory Details (10)
Auto-updated May 29, 2026[SECURITY] [DLA 3532-1] openssh security update
https://lists.debian.org/debian-lts-announce/2023/08/msg00021.htmlcommit f8f5a6b00398 (openbsd/src)
Fix landed in openbsd/src commit f8f5a6b00398 — awaiting tagged release
https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7cacommit f03a4faa55c4 (openbsd/src)
Fix landed in openbsd/src commit f03a4faa55c4 — awaiting tagged release
https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351dcommit 7bc29a9d5cd6 (openbsd/src)
Fix landed in openbsd/src commit 7bc29a9d5cd6 — awaiting tagged release
https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8CVE-2023-38408 OpenSSH Exploit & Vulnerability Details | Qualys
https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agentoss-security - Re: illumos (or at least danmcd) membership in the distros list
http://www.openwall.com/lists/oss-security/2023/09/22/9oss-security - Re: illumos (or at least danmcd) membership in the distros list
http://www.openwall.com/lists/oss-security/2023/09/22/11oss-security - Re: Announce: OpenSSH 9.3p2 released
http://www.openwall.com/lists/oss-security/2023/07/20/2oss-security - Re: CVE-2023-38408: Remote Code Execution in OpenSSH's forwarded ssh-agent
http://www.openwall.com/lists/oss-security/2023/07/20/1Patch Availability(12)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | openssh-sftp-server (1:8.2p1-4ubuntu0.8) @ focal | 2026-05-23 | ubuntu |
| ubuntu | openssh-sftp-server (1:7.2p2-4ubuntu2.10+esm3) @ xenial | 2026-05-23 | ubuntu |
| redhat | devworkspace/devworkspace-rhel8-operator:0.22-2 | 2023-08-30 | redhat |
| redhat | openssh-0:5.3p1-125.el6_10 | 2023-08-02 | redhat |
| redhat | openssh-0:7.4p1-23.el7_9 | 2023-08-01 | redhat |
| redhat | openssh-0:8.0p1-5.el8_2 | 2023-08-01 | redhat |
| redhat | openssh-0:8.0p1-15.el8_6 | 2023-08-01 | redhat |
| redhat | openssh-0:8.0p1-19.el8_8 | 2023-08-01 | redhat |
| redhat | openssh-0:8.7p1-30.el9_2 | 2023-08-01 | redhat |
| redhat | openssh-0:8.0p1-5.el8_1.1 | 2023-08-01 | redhat |
| redhat | openssh-0:8.0p1-7.el8_4 | 2023-08-01 | redhat |
| redhat | openssh-0:8.7p1-11.el9_0 | 2023-07-31 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(13)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Microsoft MSRCCVE-2023-384082023-07-31
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.
- Red HatRHSA-2023:4329IMPORTANT2023-07-19
RHSA-2023:4329 — Important
- Red HatRHSA-2023:4381IMPORTANT2023-07-19
RHSA-2023:4381 — Important
- Red HatRHSA-2023:4382IMPORTANT2023-07-19
RHSA-2023:4382 — Important
- Red HatRHSA-2023:4383IMPORTANT2023-07-19
RHSA-2023:4383 — Important
- Red HatRHSA-2023:4384IMPORTANT2023-07-19
RHSA-2023:4384 — Important
- Red HatRHSA-2023:4412IMPORTANT2023-07-19
RHSA-2023:4412 — Important
- Red HatRHSA-2023:4413IMPORTANT2023-07-19
RHSA-2023:4413 — Important
- Red HatRHSA-2023:4419IMPORTANT2023-07-19
RHSA-2023:4419 — Important
- Red HatRHSA-2023:4428IMPORTANT2023-07-19
RHSA-2023:4428 — Important
- Red HatRHSA-2023:4889IMPORTANT2023-07-19
RHSA-2023:4889 — Important
- UbuntuUSN-6242-1MEDIUM
OpenSSH vulnerability
- UbuntuUSN-6242-2MEDIUM
OpenSSH vulnerability
Data Freshness Timeline
(refreshed 8× in last 7d / 37× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-23 02:25 UTCEG score recompute
- 2026-07-22 23:11 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:06 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 06:07 UTCOSV refresh
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
Show 53 moreShow fewer
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 18:01 UTCOSV refresh
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-07 19:46 UTCOSV refresh
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-23 09:51 UTCEG score recompute
- 2026-05-23 09:51 UTCVendor advisory
- 2026-05-23 09:51 UTCGHSA enrichment
Publicly available exploits
(4 references)Working exploit code is in the public domain (4 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCAdel2411/cve-2023-38408First seen Jul 16, 2025
An in-depth analysis of CVE 2023 38408, a critical OpenSSH vulnerability, including technical background, exploitation in controlled environments, and mitigation strategies.
Open source ↗ - GitHub PoCTX-One/CVE-2023-38408First seen Apr 19, 2025
CVE-2023-38408 SSH Vulnerability Scanner & PoC
Open source ↗ - GitHub PoCLucasPDiniz/CVE-2023-38408First seen Nov 9, 2023
Takeover Account OpenSSH
Open source ↗ - GitHub PoCkali-mx/CVE-2023-38408First seen Aug 9, 2023
PoC for the recent critical vuln affecting OpenSSH versions < 9.3p2
Open source ↗
Frequently asked(5)
What is CVE-2023-38408?
When was CVE-2023-38408 disclosed?
Is CVE-2023-38408 actively exploited?
What is the CVSS score of CVE-2023-38408?
How do I remediate CVE-2023-38408?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2023-38408
Is Your Infrastructure Affected by CVE-2023-38408?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.