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.
- 16,021 internet-exposed hosts are running an affected version right now
- High exploitation likelihood — EPSS 80%
A fix is available — apply it.
16,021 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 PROB
- 80%
- EPSS %ILE
- 100%
- KEV
- Not listed
Published
July 20, 2023
Last Modified
November 21, 2024
Advisory Details (10)
Auto-updated Sep 4, 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/1Locked Out | Packet Storm
http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.htmlPatch 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.
Affected Packages
(7 across 7 ecosystems)
Alpine:v3.16(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | — | 9.0_p1-r4 | — |
Alpine:v3.17(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | — | 9.1_p1-r4 | — |
Debian:10(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | 1:7.9p1-10, 1:7.9p1-10+deb10u1, 1:7.9p1-10+deb10u2 | 1:7.9p1-10+deb10u3 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | 1:8.4p1-5, 1:8.4p1-5+deb11u1 | 1:8.4p1-5+deb11u2 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | 1:9.2p1-2 | 1:9.2p1-2+deb12u1 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | — | 1:9.3p2-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| openssh | — | 1:9.3p2-1 | — |
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 5× in last 7d / 17× 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.
Showing the most recent 100 of 106 total refreshes for this CVE.
- 2026-09-07 15:59 UTCEPSS rescore
- 2026-09-06 13:45 UTCEPSS rescore
- 2026-09-05 15:26 UTCEPSS rescore
- 2026-09-04 05:04 UTCEPSS rescore
- 2026-09-02 14:09 UTCEPSS rescore
- 2026-09-01 09:29 UTCOSV refresh
- 2026-08-30 19:15 UTCEPSS rescore
- 2026-08-28 21:38 UTCEPSS rescore
- 2026-08-27 14:23 UTCEPSS rescore
- 2026-08-25 13:46 UTCEPSS rescore
- 2026-08-24 14:14 UTCEPSS rescore
- 2026-08-21 23:47 UTCEPSS rescore
- 2026-08-19 17:02 UTCEPSS rescore
- 2026-08-16 02:12 UTCEPSS rescore
- 2026-08-15 09:07 UTCOSV refresh
- 2026-08-13 21:58 UTCEPSS rescore
- 2026-08-12 13:48 UTCEPSS rescore
- 2026-08-06 13:44 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-04 15:07 UTCEPSS rescore
- 2026-07-30 20:51 UTCOSV refresh
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-25 14:16 UTCEPSS rescore
- 2026-07-24 14:16 UTCEPSS rescore
- 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
- 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
Publicly available exploits
(5 references)Working exploit code is in the public domain (5 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 PoCclassic130/CVE-2023-38408First seen Jan 7, 2024
CVE-2023-38408 Remote Code Execution in OpenSSH's forwarded ssh-agent
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
See which npm, PyPI, Go, and Maven packages are affected by 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.