CVE-2023-51384
In ssh-agent in OpenSSH before 9.6, certain destination constraints can be incompletely applied. When destination constraints are specified during addition of PKCS#11-hosted private keys, these constraints are only applied to the first key, even if a PKCS#11 token returns multiple keys.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | openssh | Fixed | 1:9.6p1-3ubuntu1 | UBUNTU-CVE-2023-51384 |
| Ubuntu 24.04 | openssh-ssh1 | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | UBUNTU-CVE-2023-51384 | |
| Ubuntu 22.04 | openssh | Fixed | 1:8.9p1-3ubuntu0.6 | UBUNTU-CVE-2023-51384 |
| Ubuntu 22.04 | openssh-ssh1 | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | UBUNTU-CVE-2023-51384 | |
| Ubuntu 20.04 | openssh-ssh1 | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | UBUNTU-CVE-2023-51384 | |
| Ubuntu 18.04 | openssh-ssh1 | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | UBUNTU-CVE-2023-51384 | |
| Ubuntu 16.04 | openssh | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | ||
| Debian 14 | openssh | Fixed | 1:9.6p1-1 | DEBIAN-CVE-2023-51384 |
| Debian 13 | openssh | Fixed | 1:9.6p1-1 | DEBIAN-CVE-2023-51384 |
| Debian 12 | openssh | Fixed | 1:9.2p1-2+deb12u2 | DEBIAN-CVE-2023-51384 |
| Red Hat Enterprise Linux 9 | openssh | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 9 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-cavs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 8 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-cavs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-server-sysvinit | Not affected | ||
| Red Hat Enterprise Linux 7 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 6 | pam_ssh_agent_auth | Not affected | ||
| Alpine Linux 3.24 | openssh | Fixed | 9.6_p1-r0 | ALPINE-CVE-2023-51384 |
| Alpine Linux 3.23 | openssh | Fixed | 9.6_p1-r0 | ALPINE-CVE-2023-51384 |
| Alpine Linux 3.22 | openssh | Fixed | 9.6_p1-r0 | ALPINE-CVE-2023-51384 |
| Alpine Linux 3.21 | openssh | Fixed | 9.6_p1-r0 | ALPINE-CVE-2023-51384 |
| Alpine Linux 3.20 | openssh | Fixed | 9.6_p1-r0 | ALPINE-CVE-2023-51384 |
| Alpine Linux 3.19 | openssh | Fixed | 9.6_p1-r0 | ALPINE-CVE-2023-51384 |
| Alpine Linux 3.17 | openssh | Fixed | 9.1_p1-r5 | ALPINE-CVE-2023-51384 |
| Alpine Linux 3.16 | openssh | Fixed | 9.0_p1-r5 | ALPINE-CVE-2023-51384 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2023/dsa-5586 (vendor-advisory)
References
- https://www.openssh.com/txt/release-9.6
- https://www.openwall.com/lists/oss-security/2023/12/18/2
- https://github.com/openssh/openssh-portable/commit/881d9c6af9da4257c69c327c4e2f1508b2fa754b
- https://www.debian.org/security/2023/dsa-5586
- https://security.netapp.com/advisory/ntap-20240105-0005/
- https://support.apple.com/kb/HT214084
- http://seclists.org/fulldisclosure/2024/Mar/21
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.