CVE-2023-38408
published critical CVSS 3.1 · 9.8openssh: Remote code execution in ssh-agent PKCS#11 support
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2176 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-273 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | openssh | Advisory build | 8.0p1-19.el8_8 | ALSA-2023:4419 |
| Alpine Linux | edge | openssh | Fixed | 0 | Package fix record |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Debian | buster | openssh | Advisory build | 1:7.9p1-10+deb10u3 | DLA-3532-1 |
| Oracle Linux | 6 | opensshi686 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| AlmaLinux | 8 | openssh | Advisory build | 8.0p1-33.el8_10 | ALSA-2026:69266 |
| AlmaLinux | 8 | openssh-askpass | Advisory build | 8.0p1-19.el8_8 | ALSA-2023:4419 |
| AlmaLinux | 8 | openssh-askpass | Advisory build | 8.0p1-33.el8_10 | ALSA-2026:69266 |
| AlmaLinux | 8 | openssh-cavs | Advisory build | 8.0p1-19.el8_8 | ALSA-2023:4419 |
| AlmaLinux | 8 | openssh-cavs | Advisory build | 8.0p1-33.el8_10 | ALSA-2026:69266 |
| AlmaLinux | 8 | openssh-clients | Advisory build | 8.0p1-19.el8_8 | ALSA-2023:4419 |
| AlmaLinux | 8 | openssh-clients | Advisory build | 8.0p1-33.el8_10 | ALSA-2026:69266 |
| AlmaLinux | 8 | openssh-keycat | Advisory build | 8.0p1-19.el8_8 | ALSA-2023:4419 |
| AlmaLinux | 8 | openssh-keycat | Advisory build | 8.0p1-33.el8_10 | ALSA-2026:69266 |
| AlmaLinux | 8 | openssh-ldap | Advisory build | 8.0p1-19.el8_8 | ALSA-2023:4419 |
| AlmaLinux | 8 | openssh-ldap | Advisory build | 8.0p1-33.el8_10 | ALSA-2026:69266 |
| AlmaLinux | 8 | openssh-server | Advisory build | 8.0p1-19.el8_8 | ALSA-2023:4419 |
| AlmaLinux | 8 | openssh-server | Advisory build | 8.0p1-33.el8_10 | ALSA-2026:69266 |
| AlmaLinux | 8 | pam_ssh_agent_auth | Advisory build | 0.10.3-7.19.el8_8 | ALSA-2023:4419 |
| AlmaLinux | 8 | pam_ssh_agent_auth | Advisory build | 0.10.3-8.33.el8_10 | ALSA-2026:69266 |
| AlmaLinux | 9 | openssh | Advisory build | 8.7p1-30.el9_2 | ALSA-2023:4412 |
| AlmaLinux | 9 | openssh-askpass | Advisory build | 8.7p1-30.el9_2 | ALSA-2023:4412 |
| AlmaLinux | 9 | openssh-clients | Advisory build | 8.7p1-30.el9_2 | ALSA-2023:4412 |
| AlmaLinux | 9 | openssh-keycat | Advisory build | 8.7p1-30.el9_2 | ALSA-2023:4412 |
| AlmaLinux | 9 | openssh-server | Advisory build | 8.7p1-30.el9_2 | ALSA-2023:4412 |
| AlmaLinux | 9 | pam_ssh_agent_auth | Advisory build | 0.10.4-5.30.el9_2 | ALSA-2023:4412 |
| Alpine Linux | v3.16 | openssh | Fixed | 9.0_p1-r4 | Package fix record |
| Alpine Linux | v3.17 | openssh | Fixed | 9.1_p1-r4 | Package fix record |
| Alpine Linux | v3.19 | openssh | Fixed | 0 | Package fix record |
| Alpine Linux | v3.20 | openssh | Fixed | 0 | Package fix record |
| Alpine Linux | v3.21 | openssh | Fixed | 0 | Package fix record |
| Alpine Linux | v3.22 | openssh | Fixed | 0 | Package fix record |
| Alpine Linux | v3.23 | openssh | Fixed | 0 | Package fix record |
| Alpine Linux | v3.24 | openssh | Fixed | 0 | Package fix record |
| Oracle Linux | 6 | opensshx86_64 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | openssh-askpassi686 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | openssh-askpassx86_64 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | openssh-clientsi686 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | openssh-clientsx86_64 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | openssh-ldapi686 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | openssh-ldapx86_64 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | openssh-serveri686 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | openssh-serverx86_64 | Advisory build | 0:5.3p1-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | pam_ssh_agent_authi686 | Advisory build | 0:0.9.3-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 6 | pam_ssh_agent_authx86_64 | Advisory build | 0:0.9.3-124.0.2.el6_10 | ELSA-2023-4428 |
| Oracle Linux | 7 | opensshaarch64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | opensshaarch64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | opensshx86_64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | opensshx86_64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-askpassaarch64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-askpassaarch64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-askpassx86_64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-askpassx86_64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-cavsaarch64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-cavsaarch64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-cavsx86_64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-cavsx86_64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-clientsaarch64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-clientsaarch64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-clientsx86_64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-clientsx86_64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-keycataarch64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-keycataarch64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-keycatx86_64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-keycatx86_64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-ldapaarch64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-ldapaarch64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-ldapx86_64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-ldapx86_64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-serveraarch64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-serveraarch64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-serverx86_64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-serverx86_64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-server-sysvinitaarch64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-server-sysvinitaarch64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | openssh-server-sysvinitx86_64 | Advisory build | 0:7.4p1-23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | openssh-server-sysvinitx86_64 | Advisory build | 10:7.4p1-23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | pam_ssh_agent_authaarch64 | Advisory build | 0:0.10.3-2.23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | pam_ssh_agent_authaarch64 | Advisory build | 10:0.10.3-2.23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 7 | pam_ssh_agent_authx86_64 | Advisory build | 0:0.10.3-2.23.0.1.el7_9 | ELSA-2023-4382 |
| Oracle Linux | 7 | pam_ssh_agent_authx86_64 | Advisory build | 10:0.10.3-2.23.0.1.el7_9_fips | ELSA-2023-12711 |
| Oracle Linux | 8 | opensshaarch64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | opensshx86_64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-askpassaarch64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-askpassx86_64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-cavsaarch64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-cavsx86_64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-clientsaarch64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-clientsx86_64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-keycataarch64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-keycatx86_64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-ldapaarch64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-ldapx86_64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-serveraarch64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | openssh-serverx86_64 | Advisory build | 0:8.0p1-19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | pam_ssh_agent_authaarch64 | Advisory build | 0:0.10.3-7.19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 8 | pam_ssh_agent_authx86_64 | Advisory build | 0:0.10.3-7.19.el8_8 | ELSA-2023-4419 |
| Oracle Linux | 9 | opensshaarch64 | Advisory build | 0:8.7p1-30.el9_2 | ELSA-2023-4412 |
| Oracle Linux | 9 | opensshx86_64 | Advisory build | 0:8.7p1-30.el9_2 | ELSA-2023-4412 |
| Oracle Linux | 9 | openssh-askpassaarch64 | Advisory build | 0:8.7p1-30.el9_2 | ELSA-2023-4412 |
| Oracle Linux | 9 | openssh-askpassx86_64 | Advisory build | 0:8.7p1-30.el9_2 | ELSA-2023-4412 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
2- n/a
- CWE-428 CWE-428 Unquoted Search Path or Element
References
21- http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html
- [oss-security] 20230719 Re: CVE-2023-38408: Remote Code Execution in OpenSSH's forwarded ssh-agent http://www.openwall.com/lists/oss-security/2023/07/20/1
- [oss-security] 20230720 Re: Announce: OpenSSH 9.3p2 released http://www.openwall.com/lists/oss-security/2023/07/20/2
- [oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list http://www.openwall.com/lists/oss-security/2023/09/22/11
- [oss-security] 20230922 Re: illumos (or at least danmcd) membership in the distros list http://www.openwall.com/lists/oss-security/2023/09/22/9
- https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8
- https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d
- https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca
- [debian-lts-announce] 20230817 [SECURITY] [DLA 3532-1] openssh security update https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html
- FEDORA-2023-79a18e1725 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/
- FEDORA-2023-878e04f4ae https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/
- https://news.ycombinator.com/item?id=36790196
- GLSA-202307-01 https://security.gentoo.org/glsa/202307-01
- https://security.netapp.com/advisory/ntap-20230803-0010/
- https://support.apple.com/kb/HT213940
- https://www.openssh.com/security.html
- https://www.openssh.com/txt/release-9.3p2
- https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt
- https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408
Provider assertions
4mitre · cna
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6e5da9717482fa9285e6a9b474906c6d79c9f6eea3ee7ab4e62ec29d8d315165
- Ingested
- 15 Oct 2026, 06:11:22 UTC
- Source record
- Official CVE record