CVE-2023-38408
openssh: Remote code execution in ssh-agent PKCS#11 support
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-428
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | OpenSSH_jll | <9.3.2+0 | 9.3.2+0 |
Open a package to see all its vulnerabilities.
Operating systems · 65 fixes
Oracle Linux 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | pam-ssh-agent-auth | 0.10.3-2.23.0.1.el7_9 |
| 7 | pam-ssh-agent-auth | 10:0.10.3-2.23.0.1.el7_9_fips |
| 7 | openssh +7 | 10:7.4p1-23.0.1.el7_9_fips |
| 7 | openssh +7 | 7.4p1-23.0.1.el7_9 |
| 8 | pam-ssh-agent-auth | 0.10.3-7.19.el8_8 |
| 8 | openssh +6 | 8.0p1-19.el8_8 |
2 more rows
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | openssh +3 | 8.9p1-1.ph4 |
| 5.0 | openssh +3 | 9.3p2-1.ph5 |
Red Hat 3 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | pam-ssh-agent-auth | 0:0.10.3-2.23.el7_9 | RHSA-2023:4382 |
| 7 | openssh +7 | 0:7.4p1-23.el7_9 | RHSA-2023:4382 |
| 8 | pam-ssh-agent-auth | 0:0.10.3-7.15.el8_6 | RHSA-2023:4413 |
| 8 | pam-ssh-agent-auth | 0:0.10.3-7.19.el8_8 | RHSA-2023:4419 |
| 8 | pam-ssh-agent-auth | 0:0.10.3-7.5.el8_1 | RHSA-2023:4383 |
| 8 | pam-ssh-agent-auth | 0:0.10.3-7.5.el8_2 | RHSA-2023:4384 |
10 more rows
SUSE Linux Enterprise 3 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | openssh +3 | 7.2p2-81.4.2 | SUSE-SU-2023:2950-1 |
| 15.4 | openssh +6 | 8.4p1-150300.3.22.1 | SUSE-SU-2023:2945-1 |
| 15.5 | openssh +6 | 8.4p1-150300.3.22.1 | SUSE-SU-2023:2945-1 |
SUSE Linux Enterprise Micro 4 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | openssh +4 | 8.4p1-150300.3.22.1 | SUSE-SU-2023:2945-1 |
| 5.2 | openssh +4 | 8.4p1-150300.3.22.1 | SUSE-SU-2023:2945-1 |
| 5.3 | openssh +4 | 8.4p1-150300.3.22.1 | SUSE-SU-2023:2945-1 |
| 5.4 | openssh +4 | 8.4p1-150300.3.22.1 | SUSE-SU-2023:2945-1 |
alma 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | pam-ssh-agent-auth | 0.10.3-7.19.el8_8 |
| 8 | openssh +6 | 8.0p1-19.el8_8 |
| 9 | pam-ssh-agent-auth | 0.10.4-5.30.el9_2 |
| 9 | openssh +4 | 8.7p1-30.el9_2 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | pam-ssh-agent-auth +1 | 0.10.4-4.8.amzn2023.0.7 |
| 2023 | openssh +8 | 8.7p1-8.amzn2023.0.7 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssh | 9.3_p2-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | openssh | 1:7.9p1-10+deb10u3 |
| 11 | openssh | 1:8.4p1-5+deb11u2 |
| 12 | openssh | 1:9.2p1-2+deb12u1 |
| 13 | openssh | 1:9.3p2-1 |
| 14 | openssh | 1:9.3p2-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssh | 1:9.2p1-2+deb12u1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | openssh +7 | 9.3p2-1.1 | openSUSE-SU-2024:13063-1 |
openSUSE Leap Micro 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | openssh +4 | 8.4p1-150300.3.22.1 | SUSE-SU-2023:2945-1 |
rocky 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | pam-ssh-agent-auth | 0.10.3-7.19.el8_8 |
| 8 | openssh +6 | 8.0p1-19.el8_8 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-openssh | 1:8.4p1-5+deb11u2 |
| 12 | rootio-openssh | 1:9.2p1-2+deb12u1 |
| 13 | rootio-openssh | 1:9.3p2-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssh +1 | 7.4p1-23.0.3.el7_9+sp999 |
ubuntu 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | openssh | 1:7.6p1-4ubuntu0.7+esm1 |
| 20.04 | openssh | 1:8.2p1-4ubuntu0.8 |
| 20.04-ESM | openssh | 1:8.2p1-4ubuntu0.8 |
| 22.04 | openssh | 1:8.9p1-3ubuntu0.3 |
| 24.04 | openssh | 1:9.3p1-1ubuntu2 |
| 26.04 | openssh | 1:9.3p1-1ubuntu2 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssh | 9.3_p2-r0 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssh | not affected |
| 3.23 | openssh | not affected |
| 3.24 | openssh | not affected |
| edge | openssh | not affected |
References
- packetstormsecurity.com http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/07/20/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/07/20/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/09/22/11
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/09/22/9
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:4412
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-38408
- blog.qualys.com https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent
- bugzilla.redhat.com https://bugzilla.redhat.com/2224173
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2224173
Show all 34 references
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-38408
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-4412.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:4419
- github.com https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8
- github.com https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d
- github.com https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-38408.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-4428.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/08/msg00021.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/
- news.ycombinator.com https://news.ycombinator.com/item?id=36790196
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-38408
- security.gentoo.org https://security.gentoo.org/glsa/202307-01
- security.netapp.com https://security.netapp.com/advisory/ntap-20230803-0010/
- support.apple.com https://support.apple.com/kb/HT213940
- ubuntu.com https://ubuntu.com/security/notices/USN-6242-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6242-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-38408
- www.openssh.com https://www.openssh.com/security.html
- www.openssh.com https://www.openssh.com/txt/release-9.3p2
- www.qualys.com https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt
- www.vicarius.io https://www.vicarius.io/vsociety/posts/exploring-opensshs-agent-forwarding-rce-cve-2023-38408
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.