Security Resilience

CVE-2023-38408

Openbsd Openssh ≤ 9.3

Public PoCHigh EPSS
Published
20 July 2023
Modified
15 October 2026
Patch / advisory
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.80 99.6th percentile
Risk Priority 97 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-38408 is a critical-severity Unquoted Search Path or Element (CWE-428) vulnerability in Openbsd Openssh. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked in the top 0.4% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

The vulnerability is an insufficiently trustworthy search path in the PKCS#11 feature of ssh-agent within OpenSSH versions prior to 9.3p2. This stems from an incomplete remediation of CVE-2016-10009 and allows code in directories such as /usr/lib to be loaded into the agent even when that code cannot be assumed safe. The issue is tracked as CWE-428 and carries a CVSS 3.1 score of 9.8.

An attacker who can arrange for a victim’s ssh-agent to be forwarded to a system under their control can supply a malicious PKCS#11 module that ssh-agent will load, resulting in remote code execution on the victim’s host with the privileges of the agent process. No authentication or user interaction is required once the agent forwarding occurs.

Upstream advisories and the OpenSSH 9.3p2 release notes direct users to upgrade immediately; the fix restricts the search path used for PKCS#11 providers when an agent is forwarded. Public exploit code has been posted, and the EPSS score has reached a peak of 0.6999 with a current value of 0.6435, indicating sustained exploitation interest after disclosure.

EU & UK References

Vulnerability Data

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.)…

more

NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1574 Hijack Execution Flow Stealth
Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs.
T1574.009 Path Interception by Unquoted Path Stealth
Adversaries may execute their own malicious payloads by hijacking vulnerable file path references.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-51767Same product: Openbsd Openssh
CVE-2023-7043Shared CWE-428
CVE-2020-37020Shared CWE-428
CVE-2025-39246Shared CWE-428
CVE-2021-47985Shared CWE-428
CVE-2025-66269Shared CWE-428
CVE-2026-33253Shared CWE-428
CVE-2025-1984Shared CWE-428
CVE-2019-25281Shared CWE-428
CVE-2026-82155Shared CWE-428

Affected Assets

openbsd
openssh
9.3 · ≤ 9.3
fedoraproject
fedora
37, 38

Mitigating Controls

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prevent path-handling flaws such as unquoted elements during development.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development can detect unquoted search-path issues before deployment.

prevents

Secure coding standards directly mandate quoting search paths and avoiding unsafe path construction.

blocks

A.8.7 can block some exploitation by allowlisting or quarantining attacker-supplied executables, but it does not neutralize the unquoted-path weakness and can miss or permit non-malicious payloads.

References