Name | CVE-2023-38408 |
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 | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3532-1, ELA-925-1 |
Debian Bugs | 1042460 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
openssh (PTS) | jessie, jessie (lts) | 1:6.7p1-5+deb8u10 | fixed |
| stretch (security) | 1:7.4p1-10+deb9u6 | vulnerable |
| stretch (lts), stretch | 1:7.4p1-10+deb9u9 | fixed |
| buster (security), buster, buster (lts) | 1:7.9p1-10+deb10u4 | fixed |
| bullseye (security), bullseye | 1:8.4p1-5+deb11u3 | fixed |
| bookworm (security), bookworm | 1:9.2p1-2+deb12u3 | fixed |
| sid, trixie | 1:9.9p1-3 | fixed |
The information below is based on the following data on fixed versions.
Notes
https://www.openwall.com/lists/oss-security/2023/07/19/9
https://github.com/openssh/openssh-portable/commit/892506b13654301f69f9545f48213fc210e5c5cc
https://github.com/openssh/openssh-portable/commit/1f2731f5d7a8f8a8385c6031667ed29072c0d92a
https://github.com/openssh/openssh-portable/commit/29ef8a04866ca14688d5b7fed7b8b9deab851f77
https://github.com/openssh/openssh-portable/commit/099cdf59ce1e72f55d421c8445bf6321b3004755
Exploitation requires the presence of specific libraries on the victim system.
Remote exploitation requires that the agent was forwarded to an attacker-controlled
system.