CVE-2023-28531
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop...
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
CVE-2023-28531- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-284
- Updated
- 2026-11-02
CVE List No score
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
CVE-2023-28531- Weakness
- CWE-284
- Updated
- 2026-11-02
EUVDEUVD-2023-32201 No score
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
EUVD-2023-32201- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-j839-ff8c-f62x
9.8
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop...
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints.
- Record
GHSA-j839-ff8c-f62x- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-284
- Updated
- 2026-11-02
OSVALPINE-CVE-2023-28531
9.8
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
ALPINE-CVE-2023-28531- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-25662
9.8
CVE-2023-28531 affecting package openssh for versions less than 8.9p1-5
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
AZL-25662- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVBELL-CVE-2023-28531
9.8
CVE-2023-28531 does not affect BellSoft software
- Record
BELL-CVE-2023-28531- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
9.8
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
CVE-2023-28531- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-28531
9.8
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
DEBIAN-CVE-2023-28531- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-67
9.8
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
JLSEC-2026-67- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-28531
9.8
ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints. The earliest affected version is 8.9.
- Record
UBUNTU-CVE-2023-28531- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUSN-6560-1 No score
openssh vulnerabilities
Fabian Bäumer, Marcus Brinkmann, Jörg Schwenk discovered that the SSH protocol was vulnerable to a prefix truncation attack. If a remote attacker was able to intercept SSH communications, extension negotiation messages could be truncated, possibly leading to certain algorithms and features being downgraded. This issue is known as the Terrapin attack. This update adds protocol extensions to mitigate this issue. (CVE-2023-48795)
Luci Stanescu discovered that OpenSSH incorrectly added destination constraints when smartcard keys were added to ssh-agent, contrary to expectations. This issue only affected Ubuntu 22.04 LTS, and Ubuntu 23.04. (CVE-2023-28531)
- Record
USN-6560-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
opensshAlpine:v3.16 |
8.9 up to 9.0_p1-r3 | 9.0_p1-r3 |
opensshAlpine:v3.17 |
8.9 up to 9.1_p1-r3 | 9.1_p1-r3 |
opensshAzure Linux:2 |
before 8.9p1-5 | 8.9p1-5 |
opensshDebian:12 |
before 1:9.2p1-2+deb12u2, plus listed versions 1:9.2p1-21:9.2p1-2+deb12u1 |
1:9.2p1-2+deb12u2 |
opensshDebian:13 |
before 1:9.3p1-1 | 1:9.3p1-1 |
opensshDebian:14 |
before 1:9.3p1-1 | 1:9.3p1-1 |
OpenSSH_jllJulia |
8.9.0+0 up to 9.3.2+0 | 9.3.2+0 |
opensshUbuntu:22.04:LTS |
before 1:8.9p1-3ubuntu0.5, plus listed versions 1:8.4p1-6ubuntu21:8.7p1-21:8.7p1-2build11:8.7p1-41:8.8p1-1 Show 4 moreShow less1:8.9p1-31:8.9p1-3ubuntu0.11:8.9p1-3ubuntu0.31:8.9p1-3ubuntu0.4 |
1:8.9p1-3ubuntu0.5 |
opensshUbuntu:20.04:LTS |
before 1:8.2p1-4ubuntu0.10, plus listed versions 1:8.0p1-6build11:8.1p1-11:8.1p1-51:8.2p1-41:8.2p1-4ubuntu0.1 Show 7 moreShow less1:8.2p1-4ubuntu0.21:8.2p1-4ubuntu0.31:8.2p1-4ubuntu0.41:8.2p1-4ubuntu0.51:8.2p1-4ubuntu0.71:8.2p1-4ubuntu0.81:8.2p1-4ubuntu0.9 |
1:8.2p1-4ubuntu0.10 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-28531 is a critical vulnerability (CVSS 9.8) in Openbsd Openssh, published March 17, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.99%, the 87th percentile. Fixed in openssh 9.0_p1-r3.
References
openwall.com/lists/oss-security/2023/03/15/8
security.netapp.com/advisory/ntap-20230413-0008
security.gentoo.org/glsa/202307-01
debian.org/security/2023/dsa-5586
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AN2UDTXEUSKFIOIYMV6JNI5VSBMYZOFT
lists.fedoraproject.org/archives/list/[email protected]/message/AN2UDTXEUSKFIOIYMV6JNI5VSBMYZOFT
Show 12 moreShow less
cert-portal.siemens.com/productcert/html/ssa-082556.html
cert-portal.siemens.com/productcert/html/ssa-019113.html
cert-portal.siemens.com/productcert/html/ssa-457936.html
nvd.nist.gov/vuln/detail/CVE-2023-28531
github.com/advisories/GHSA-j839-ff8c-f62x
security.alpinelinux.org/vuln/CVE-2023-28531
docs.bell-sw.com/security/cves/CVE-2023-28531
security-tracker.debian.org/tracker/CVE-2023-28531
ubuntu.com/security/CVE-2023-28531
ubuntu.com/security/notices/USN-6560-1
cve.org/CVERecord?id=CVE-2023-28531
ubuntu.com/security/CVE-2023-48795