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…
CVE-2023-38408 affects 166 listed versions of OpenSSH in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
OpenSSH
166 of 193 listed versions are affected. No fixed release is named. The newest release, 10.6 P2, is not affected.
9.3 P1 9.3 9.2 P1 9.1 P1 9.1 9.0 P1 8.9 P1 8.9 8.8 P1 8.8 8.7 P1 8.7 8.6 P1 8.6 8.5 P1 8.5 8.4 P1 8.4 8.3 P1 8.3 8.2 P1 8.2 8.1 P1 8.1 8.0 P1 7.9 P1 7.9 7.8 P1 7.8 7.7 P1 7.7 7.6 P1 7.6 7.5 P1 7.4 P1 7.4 7.3 P1 7.3 7.2 P2 7.2 P1 7.2 7.1 P2 7.1 P1 7.1 7.0 P1 7.0 6.9 P1 6.9 6.8 P1 6.8 6.7 P1 6.7 6.6 P1 6.6 6.5 P1 6.5 6.4 P1 6.4 6.3 P1 6.3 and 106 more
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by MITRE on 20 July 2023. Last changed 15 October 2026.
Sources
Check one version you run: look CVE-2023-38408 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.