Home / Openbsd / Openssh / CVE-2023-38408
CVE-2023-38408: is it exploited, and which versions of Openbsd Openssh are affected and fixed?
CVE-2023-38408 is an unquoted search path vulnerability in Openbsd Openssh. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: openssh before 9.3, openssh 9.3, fedora 37 and 1 more (NVD). Fixed in 9.3 (NVD). Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:37 UTC.
What is CVE-2023-38408?
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.
From the CVE record by mitre, last updated October 14, 2026, 23:35 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| openbsd | openssh | before 9.3 | application |
| openbsd | openssh | 9.3 | application |
| fedoraproject | fedora | 37 | operating system |
| fedoraproject | fedora | 38 | operating system |
NVD analysis (status Modified), last modified October 15, 2026, 00:16 UTC.
How severe is CVE-2023-38408?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-38408 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, October 15, 2024)
- EPSS
- 79.7% probability of exploitation activity in the next 30 days, percentile 99.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-428 Unquoted Search Path or Element
Where are the vendor advisories and references?
- https://news.ycombinator.com/item?id=36790196
- https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent
- https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt
- https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca
- https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8
- https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d
- https://www.openssh.com/txt/release-9.3p2
- https://www.openssh.com/security.html
- GLSA-202307-01 vendor-advisory
- [oss-security] 20230719 Re: CVE-2023-38408: Remote Code Execution in OpenSSH's forwarded ssh-agent mailing-list
- [oss-security] 20230720 Re: Announce: OpenSSH 9.3p2 released mailing-list
- http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html
- FEDORA-2023-878e04f4ae vendor-advisory
- FEDORA-2023-79a18e1725 vendor-advisory
- https://security.netapp.com/advisory/ntap-20230803-0010/
- [debian-lts-announce] 20230817 [SECURITY] [DLA 3532-1] openssh security update mailing-list
- [oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list mailing-list
- [oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list mailing-list
- https://support.apple.com/kb/HT213940
- https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
When was it published, and where is the official record?
- Reserved
- July 17, 2023
- Published
- July 20, 2023, 00:00 UTC
- CVE record updated
- October 14, 2026, 23:35 UTC by mitre
- NVD
- Modified, last modified October 15, 2026, 00:16 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:37 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Openssh?
- Nov 5, 2026CVE-2026-123158 OpenBSD OpenSSH: unexpected Status Code or Return Value exploited
- Oct 6, 2026CVE-2026-106583 OpenBSD OpenSSH: improper Control of Resource Identifiers
- Oct 6, 2026CVE-2026-106589 OpenBSD OpenSSH: least Privilege Violation
- Oct 6, 2026CVE-2026-106588 OpenBSD OpenSSH: improper Isolation or Compartmentalization
- Oct 6, 2026CVE-2026-106587 OpenBSD OpenSSH: type confusion
- Oct 6, 2026CVE-2026-106586 OpenBSD OpenSSH: always-incorrect control flow
- Oct 6, 2026CVE-2026-106585 OpenBSD OpenSSH: improper Handling of Highly Compressed Data (Data Amplification)
- Oct 6, 2026CVE-2026-106584 OpenBSD OpenSSH: off-by-one Error
Questions about CVE-2023-38408
Is CVE-2023-38408 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 79.7% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Openbsd Openssh are affected by CVE-2023-38408?
openssh before 9.3, openssh 9.3, fedora 37 and fedora 38, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2023-38408?
9.3, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-38408?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2023-38408?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.