CVE-2023-38408
OpenSSH · 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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 79.700% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 9.8 · published by [email protected]CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T11:59:08.734Z
CVSS 3.1 · 9.8 · published by 134c704f-9b21-4f2e-91b3-4a467353bcc0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T11:59:08.734Z
CVSS 3.1 · 9.8 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T16:01:40.017Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T11:59:08.734Z | NVD |
| epss | verified | 2026-11-19T16:04:36.838Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:01:40.017Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:01:24.775Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:01:24.775Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "openssh",
"debian": "https://tracker.debian.org/pkg/openssh",
"source": "https://ubuntu.com/security/cve?package=openssh",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=openssh",
"statuses": [
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:9.3p1-1ubuntu2",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "9.3p2",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:8.2p1-4ubuntu0.8",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:8.9p1-3ubuntu0.3",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:9.0p1-1ubuntu8.4",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life",
"release_codename": "kinetic"
},
{
"pocket": "esm-infra",
"status": "released",
"component": null,
"description": "1:7.6p1-4ubuntu0.7+esm1",
"release_codename": "bionic"
},
{
"pocket": "esm-infra",
"status": "released",
"component": null,
"description": "1:6.6p1-2ubuntu2.13+esm1",
"release_codename": "trusty"
},
{
"pocket": "esm-infra",
"status": "released",
"component": null,
"description": "1:7.2p2-4ubuntu2.10+esm3",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:9.3p1-1ubuntu2",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:9.3p1-1ubuntu2",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:9.3p1-1ubuntu2",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:9.3p1-1ubuntu2",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:9.3p1-1ubuntu2",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:9.3p1-1ubuntu2",
"release_codename": "resolute"
}
]
}
]Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2023-38408",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:9.3p2-1"
}
]
}
],
"package": {
"name": "openssh",
"purl": "pkg:deb/debian/openssh?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-38408.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [
"CVE-2023-38408"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2023-38408",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2023-38408",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:9.2p1-2+deb12u1"
}
]
}
],
"package": {
"name": "openssh",
"purl": "pkg:deb/debian/openssh?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1:9.2p1-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-38408.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [
"CVE-2023-38408"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2023-38408",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://news.ycombinator.com/item?id=36790196",
"tags": [
"x_transferred"
]
},
{
"url": "https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.openssh.com/txt/release-9.3p2",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.openssh.com/security.html",
"tags": [
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202307-01",
"name": "GLSA-202307-01",
"tags": [
"vendor-advisory",
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2023/07/20/1",
"name": "[oss-security] 20230719 Re: CVE-2023-38408: Remote Code Execution in OpenSSH's forwarded ssh-agent",
"tags": [
"mailing-list",
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2023/07/20/2",
"name": "[oss-security] 20230720 Re: Announce: OpenSSH 9.3p2 released",
"tags": [
"mailing-list",
"x_transferred"
]
},
{
"url": "http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/",
"name": "FEDORA-2023-878e04f4ae",
"tags": [
"vendor-advisory",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/",
"name": "FEDORA-2023-79a18e1725",
"tags": [
"vendor-advisory",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20230803-0010/",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html",
"name": "[debian-lts-announce] 20230817 [SECURITY] [DLA 3532-1] openssh security update",
"tags": [
"mailing-list",
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2023/09/22/9",
"name": "[oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list",
"tags": [
"mailing-list",
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2023/09/22/11",
"name": "[oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list",
"tags": [
"mailing-list",
"x_transferred"
]
},
{
"url": "https://support.apple.com/kb/HT213940",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T17:39:13.525Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 9.8,
"attackVector": "NETWORK",
"baseSeverity": "CRITICAL",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2023-38408",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-10-15T17:36:21.400489Z"
}
}
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"type": "CWE",
"cweId": "CWE-428",
"description": "CWE-428 Unquoted Search Path or Element"
}
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-10-15T18:33:21.591Z"
}
},
{
"affected": [
{
"vendor": "Siemens",
"product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SIPLUS S7-1500 CPU 1518-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
}
],
"x_adpType": "supplier",
"references": [
{
"url": "https://cert-portal.siemens.com/productcert/html/ssa-398330.html"
}
],
"providerMetadata": {
"orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
"shortName": "siemens-SADP",
"dateUpdated": "2026-10-14T23:35:00.114Z"
}
}
]
}Archived source JSONNVD · nvd-cpe · full conditions
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "BF546253-FE80-4416-A138-D79D7288229F",
"versionEndExcluding": "9.3"
},
{
"criteria": "cpe:2.3:a:openbsd:openssh:9.3:-:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "031E80CD-A7CF-447A-AEEF-EB97EB99A762"
},
{
"criteria": "cpe:2.3:a:openbsd:openssh:9.3:p1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "97FEC052-52ED-464F-AF19-3621775292D6"
}
],
"operator": "OR"
}
]
},
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "E30D0E6F-4AE8-4284-8716-991DFA48CC5D"
},
{
"criteria": "cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "CC559B26-5DFC-4B7A-A27C-B77DE755DFF9"
}
],
"operator": "OR"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / stonking | openssh | security | 1:9.3p1-1ubuntu2 | Official record |
| upstream-note | upstream / upstream | openssh | Not a distribution channel | 9.3p2 | Official record |
| distribution-package | Ubuntu / focal | openssh | security | 1:8.2p1-4ubuntu0.8 | Official record |
| distribution-package | Ubuntu / jammy | openssh | security | 1:8.9p1-3ubuntu0.3 | Official record |
| distribution-package | Ubuntu / lunar | openssh | security | 1:9.0p1-1ubuntu8.4 | Official record |
| distribution-package | Ubuntu / bionic | openssh | esm-infra | 1:7.6p1-4ubuntu0.7+esm1 | Official record |
| distribution-package | Ubuntu / trusty | openssh | esm-infra | 1:6.6p1-2ubuntu2.13+esm1 | Official record |
| distribution-package | Ubuntu / xenial | openssh | esm-infra | 1:7.2p2-4ubuntu2.10+esm3 | Official record |
| distribution-package | Ubuntu / mantic | openssh | security | 1:9.3p1-1ubuntu2 | Official record |
| distribution-package | Ubuntu / noble | openssh | security | 1:9.3p1-1ubuntu2 | Official record |
| distribution-package | Ubuntu / oracular | openssh | security | 1:9.3p1-1ubuntu2 | Official record |
| distribution-package | Ubuntu / plucky | openssh | security | 1:9.3p1-1ubuntu2 | Official record |
| distribution-package | Ubuntu / questing | openssh | security | 1:9.3p1-1ubuntu2 | Official record |
| distribution-package | Ubuntu / resolute | openssh | security | 1:9.3p1-1ubuntu2 | Official record |
| ecosystem-boundary | Debian:13 / 13 | openssh | unknown | 1:9.3p2-1 | Official record |
| ecosystem-boundary | Debian:12 / 12 | openssh | unknown | 1:9.2p1-2+deb12u1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:01:24.775ZArchived source JSON
Source publication: 2023-07-20T00:00:00.000Z
Source modification: 2026-10-14T23:35:00.114ZDocument fingerprint
6e5da9717482fa9285e6a9b474906c6d79c9f6eea3ee7ab4e62ec29d8d315165 - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T16:01:40.017ZArchived source JSON
Source publication: 2023-07-19T00:00:00.000Z
Source modification: 2025-08-19T22:09:11.231ZDocument fingerprint
0d912d6db3b03bac4af903c43859de41384b5d0fceb1c203c6b64f100dc4725a - NVDConsulted: 2026-11-19T11:59:08.734ZArchived source JSON
Source publication: 2023-07-20T03:15:10.170Z
Source modification: 2026-10-15T00:16:34.667ZDocument fingerprint
9a60ee49aca2bfd63bdbeca38300c196a23387bb78dca19bcdca555f07e67733 - OSVConsulted: 2026-11-19T12:52:03.693ZArchived source JSON
Source publication: 2023-07-20T03:15:10.170Z
Source modification: 2026-10-26T18:03:06.173ZDocument fingerprint
11dc0b1f1a2471d583ba1b50c54472560fb669e8ec3704d3eb72ebc23f651bc7 - OSVConsulted: 2026-11-19T12:52:06.864ZArchived source JSON
Source publication: 2023-07-20T03:15:10.170Z
Source modification: 2026-10-26T18:03:06.173ZDocument fingerprint
3d30b8f3166adef0e15e4ff42edec687db3ebb2fccb3669efc9d4a7ac0be5c28 - FIRST EPSSConsulted: 2026-11-19T16:04:36.838ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
752b5a4ab7063ebae6041b8a2218e2c7a480f9f66d4152a818c6a0713b1fa460
Official status history
- UNKNOWN → PUBLISHED · · evidence