Skip to main content
Public proof of conceptFix available

CVE-2023-38408

A public proof of concept exists; no exploitation attested.

  • Published2023-07-20
  • Fixed in9.3
  • WeaknessCWE-428

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2023-07-2003:15CVE publishedNVD

Versions per branch

NVD
OpenSSH
BranchAffectedFixed in
9.3< 9.39.3
9.3= 9.3no fix published
Fedoraproject fedora
BranchAffectedFixed in
37.x= 37no fix published
38.x= 38no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • opensshWolfiall versions · fixed in 9.3_p2-r0
  • opensshUbuntu:Pro:FIPS:20.04:LTSall versions · no fixed version listed
  • opensshUbuntu:Pro:FIPS:18.04:LTSall versions · no fixed version listed
  • opensshUbuntu:Pro:FIPS:16.04:LTSall versions · no fixed version listed
  • opensshUbuntu:Pro:FIPS-updates:20.04:LTSall versions · fixed in 1:8.2p1-4ubuntu0.fips.0.8
  • opensshUbuntu:Pro:FIPS-updates:18.04:LTSall versions · fixed in 1:7.9p1-10~ubuntu18.04.fips.0.8
  • opensshUbuntu:Pro:FIPS-updates:16.04:LTSall versions · fixed in 1:7.2p2-4ubuntu2.fips.2.10.4
  • opensshUbuntu:Pro:18.04:LTSall versions · fixed in 1:7.6p1-4ubuntu0.7+esm1

128 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-38408 Red Hat Product Security822 products fixed

    openssh: Remote code execution in ssh-agent PKCS#11 support

  • ICSA-25-105-08 CISA2 known affected

    ABB M2M Gateway

    ABB M2M Gateway ARM600, firmware versions = 4.1.2 <= 5.0.3 · ABB M2M Gateway SW, software versions = 5.0.1 <= 5.0.3

  • ICSA-23-348-10 CISA5 known affected

    Siemens SIMATIC S7-1500

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more

  • SSA-398330 Siemens ProductCERT5 known affected

    SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more

  • RHSA-2023:4889 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: DevWorkspace Operator 0.22 release

  • RHSA-2023:4428 Red Hat Product Security27 products fixed

    Red Hat Security Advisory: openssh security update

8 more advisories

Full record on NVD

Fix

  1. Update OpenSSH to 9.3
  2. Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
  3. Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
  4. Vendor fix Red Hat Product Security RHSA-2023:4889 · 9 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. To update all RPMs for your particular architecture, run: rpm -Fvh [filenames] where [filenames] is a list of the RPMs you wish to upgrade. Only those RPMs which are currently instal…
  5. Vendor fix Red Hat Product Security RHSA-2023:4428 · 27 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the OpenSSH server daemon (sshd) will be restarted automatically.
  6. Workaround from the vendor Red Hat Product Security RHSA-2023:4889 · 9 productsRemote exploitation required that a user establishes an SSH connection to a compromised or malicious SSH server with agent forwarding enabled. The agent forwarding is disabled by default. Review your ssh client configuration files for the use of ForwardAgent configuration directive and invocation…
  7. Mitigation from the vendor CISA ICSA-25-105-08 · 2 productsMitigating factors describe conditions and circumstances that make an attack that exploits the vulnerability difficult or less likely to succeed. The following mitigations are recommended. 1. Obtain a cellular private access point (APN). A dedicated private cellular access point and respective SIM…

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2023-07-20
Last modified
2026-10-15
NVD status
Modified
GitHub advisory
GHSA-px36-p9hv-7h2v

Frequently asked questions

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.

Is CVE-2023-38408 actively exploited?

Active exploitation of CVE-2023-38408 has not been confirmed. Its EPSS score was 79.7% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-38408?

CVE-2023-38408 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running OpenSSH? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record