CVE-2023-38408
A public proof of concept exists; no exploitation attested.
- Published2023-07-20
- Fixed in9.3
- WeaknessCWE-428
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2023-07-2003:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.3 | < 9.3 | 9.3 | NVD |
| 9.3 | = 9.3 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 37.x | = 37 | no fix published | NVD |
| 38.x | = 38 | no fix published | NVD |
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
openssh: Remote code execution in ssh-agent PKCS#11 support
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
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: 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
Red Hat Security Advisory: DevWorkspace Operator 0.22 release
Red Hat Security Advisory: openssh security update
8 more advisories
Fix
- Update OpenSSH to 9.3
- Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
- Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
- 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…
- 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.
- 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…
- 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
- github.comPatch
- github.comPatch
- github.comPatch
- news.ycombinator.comPatch
- www.openssh.comVendor Advisory
- www.openssh.comRelease Notes
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub10 repositories, unverifiedknown since 2026-11-01kali-mx/CVE-2023-38408LucasPDiniz/CVE-2023-38408classic130/CVE-2023-38408wxrdnx/CVE-2023-38408mrtacojr/CVE-2023-38408
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2024-10-15
- CISA-ADPCVSS 3.19.82024-10-15
- NVDCVSS 3.19.8read 2026-10-23
- CISA-ADPweakness (CWE)CWE-4282024-10-15
- NVDweakness (CWE)CWE-428read 2026-10-23
- FIRST EPSSEPSS score79.7 %read 2026-12-04
- PoC-in-GitHubproof of concept10known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-27651same flawAzure Linux · MIT
- CGA-jvq7-32rc-8m88same flawChainguard · CC-BY-NC-ND-4.0
- CGA-vc8q-mv6j-3696same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2023-42225same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-px36-p9hv-7h2vsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2026-68same flawJulia Security Advisories · CC-BY-4.0
- ALSA-2023:4412advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:4419advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:69266advisory covering several CVEsAlmaLinux · MIT
- DLA-3532-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2024-0010advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1480advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:13063-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:4329advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4381advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4382advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4383advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4384advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4412advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4413advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4419advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4428advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2023:4419advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2023:2940-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:2945-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:2946-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:2947-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:2950-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-6242-1advisory covering several CVEsUbuntu
- USN-6242-2advisory covering several CVEsUbuntu
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?
Is CVE-2023-38408 actively exploited?
What is the CVSS score for CVE-2023-38408?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-px36-p9hv-7h2v
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0