| 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, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DLA-3532-1 | 
| Debian Bugs | 1042460 | 
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|---|---|---|
| openssh (PTS) | bullseye | 1:8.4p1-5+deb11u3 | fixed | 
| bullseye (security) | 1:8.4p1-5+deb11u5 | fixed | |
| bookworm | 1:9.2p1-2+deb12u7 | fixed | |
| bookworm (security) | 1:9.2p1-2+deb12u5 | fixed | |
| trixie | 1:10.0p1-7 | fixed | |
| forky, sid | 1:10.2p1-2 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|---|---|---|---|---|---|
| openssh | source | buster | 1:7.9p1-10+deb10u3 | DLA-3532-1 | ||
| openssh | source | bullseye | 1:8.4p1-5+deb11u2 | |||
| openssh | source | bookworm | 1:9.2p1-2+deb12u1 | |||
| openssh | source | (unstable) | 1:9.3p2-1 | 1042460 | 
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.