---
title: "CVE-2023-38408"
canonical_url: "https://pkgseek.com/security/CVE-2023-38408"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# 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.

CVE-2023-38408 is rated CRITICAL (9.8), with 37 indexed affected package builds across 5 distributions.

- **Severity / Score**: CRITICAL (9.8)
- **Affected builds**: 37
- **Affected distros**: 5
- **Distros with fixed_in**: Alibaba Cloud Linux, AlmaLinux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | openssh | 8.0p1-17.0.2.al8 | 8.0p1-18.0.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-askpass | 8.0p1-17.0.2.al8 | 8.0p1-18.0.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-cavs | 8.0p1-17.0.2.al8 | 8.0p1-18.0.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-clients | 8.0p1-17.0.2.al8 | 8.0p1-18.0.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-keycat | 8.0p1-17.0.2.al8 | 8.0p1-18.0.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-ldap | 8.0p1-17.0.2.al8 | 8.0p1-18.0.1.al8 |
| Alibaba Cloud Linux | 3 | openssh-server | 8.0p1-17.0.2.al8 | 8.0p1-18.0.1.al8 |
| Alibaba Cloud Linux | 3 | pam_ssh_agent_auth | 0.10.3-7.17.0.2.al8 | 0.10.3-7.18.0.1.al8 |
| AlmaLinux | 9 | pam_ssh_agent_auth | 0.10.4-10.17.el9_9.alma.1 | 8.7p1-30.el9_2 |
| Oracle Linux | 8 | openssh | 8.0p1-30.0.1.el8_10 | 8.0p1-33.0.1.el8_10 |
| Oracle Linux | 8 | openssh-askpass | 8.0p1-30.0.1.el8_10 | 8.0p1-33.0.1.el8_10 |
| Oracle Linux | 8 | openssh-cavs | 8.0p1-30.0.1.el8_10 | 8.0p1-33.0.1.el8_10 |
| Oracle Linux | 8 | openssh-clients | 8.0p1-30.0.1.el8_10 | 8.0p1-33.0.1.el8_10 |
| Oracle Linux | 8 | openssh-keycat | 8.0p1-30.0.1.el8_10 | 8.0p1-33.0.1.el8_10 |
| Oracle Linux | 8 | openssh-ldap | 8.0p1-30.0.1.el8_10 | 8.0p1-33.0.1.el8_10 |
| Oracle Linux | 8 | openssh-server | 8.0p1-30.0.1.el8_10 | 8.0p1-33.0.1.el8_10 |
| Oracle Linux | 8 | pam_ssh_agent_auth | 0.10.3-7.30.0.1.el8_10 | 0.10.3-8.33.0.1.el8_10 |
| Oracle Linux | 9 | openssh | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Oracle Linux | 9 | openssh-askpass | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Oracle Linux | 9 | openssh-clients | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Oracle Linux | 9 | openssh-keycat | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Oracle Linux | 9 | openssh-server | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Oracle Linux | 9 | pam_ssh_agent_auth | 0.10.4-5.29.el9_2 | 0.10.4-5.30.el9_2 |
| Red Hat Enterprise Linux | 9.8 | openssh | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Red Hat Enterprise Linux | 9.8 | openssh-askpass | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Red Hat Enterprise Linux | 9.8 | openssh-clients | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Red Hat Enterprise Linux | 9.8 | openssh-keycat | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Red Hat Enterprise Linux | 9.8 | openssh-server | 8.7p1-29.el9_2 | 8.7p1-30.el9_2 |
| Red Hat Enterprise Linux | 9.8 | pam_ssh_agent_auth | 0.10.4-5.29.el9_2 | 0.10.4-5.30.el9_2 |
| Ubuntu | focal | openssh-client | 1:8.2p1-4 | 1:8.2p1-4ubuntu0.8 |
| Ubuntu | focal | openssh-server | 1:8.2p1-4 | 1:8.2p1-4ubuntu0.8 |
| Ubuntu | focal | openssh-sftp-server | 1:8.2p1-4 | 1:8.2p1-4ubuntu0.8 |
| Ubuntu | focal | ssh | 1:8.2p1-4 | 1:8.2p1-4ubuntu0.8 |
| Ubuntu | jammy | openssh-client | 1:8.9p1-3 | 1:8.9p1-3ubuntu0.3 |
| Ubuntu | jammy | openssh-server | 1:8.9p1-3 | 1:8.9p1-3ubuntu0.3 |
| Ubuntu | jammy | openssh-sftp-server | 1:8.9p1-3 | 1:8.9p1-3ubuntu0.3 |
| Ubuntu | jammy | ssh | 1:8.9p1-3 | 1:8.9p1-3ubuntu0.3 |
