{"id":"CVE-2023-28531","aliases":["ALPINE-CVE-2023-28531","AZL-25662","BELL-CVE-2023-28531","DEBIAN-CVE-2023-28531","EUVD-2023-32201","GHSA-j839-ff8c-f62x","JLSEC-2026-67","UBUNTU-CVE-2023-28531","USN-6560-1"],"status":"published","title":"ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop...","description":"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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.0299,"percentile":0.87495,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-284"],"published":"2023-03-17T00:00:00Z","modified":"2026-11-10T12:28:57Z","fixes":[{"ecosystem":"Alpine:v3.16","package":"openssh","fixed_in":["9.0_p1-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"openssh","fixed_in":["9.1_p1-r3"],"sources":["osv"]},{"ecosystem":"Azure Linux:2","package":"openssh","fixed_in":["8.9p1-5"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"openssh","fixed_in":["1:9.2p1-2+deb12u2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"openssh","fixed_in":["1:9.3p1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"openssh","fixed_in":["1:9.3p1-1"],"sources":["osv"]},{"ecosystem":"Julia","package":"OpenSSH_jll","fixed_in":["9.3.2+0"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"openssh","fixed_in":["1:8.9p1-3ubuntu0.5"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.16","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.9"},{"fixed":"9.0_p1-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.9"},{"fixed":"9.1_p1-r3"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.9p1-5"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:9.2p1-2+deb12u2"}]}],"versions":["1:9.2p1-2","1:9.2p1-2+deb12u1"]},{"source":"osv","ecosystem":"Debian:13","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:9.3p1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:9.3p1-1"}]}]},{"source":"osv","ecosystem":"Julia","package":"OpenSSH_jll","ranges":[{"type":"SEMVER","events":[{"introduced":"8.9.0+0"},{"fixed":"9.3.2+0"}]}]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:8.9p1-3ubuntu0.5"}]}],"versions":["1:8.4p1-6ubuntu2","1:8.7p1-2","1:8.7p1-2build1","1:8.7p1-4","1:8.8p1-1","1:8.9p1-3","1:8.9p1-3ubuntu0.1","1:8.9p1-3ubuntu0.3","1:8.9p1-3ubuntu0.4"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:8.2p1-4ubuntu0.10"}]}],"versions":["1:8.0p1-6build1","1:8.1p1-1","1:8.1p1-5","1:8.2p1-4","1:8.2p1-4ubuntu0.1","1:8.2p1-4ubuntu0.2","1:8.2p1-4ubuntu0.3","1:8.2p1-4ubuntu0.4","1:8.2p1-4ubuntu0.5","1:8.2p1-4ubuntu0.7","1:8.2p1-4ubuntu0.8","1:8.2p1-4ubuntu0.9"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"openssh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:8.9p1-3ubuntu0.5"}]}],"versions":["1:8.4p1-6ubuntu2","1:8.7p1-2","1:8.7p1-2build1","1:8.7p1-4","1:8.8p1-1","1:8.9p1-3","1:8.9p1-3ubuntu0.1","1:8.9p1-3ubuntu0.3","1:8.9p1-3ubuntu0.4"],"bundled":2}],"products":[{"vendor":"netapp","product":"brocade_fabric_operating_system"},{"vendor":"netapp","product":"hci_bootstrap_os"},{"vendor":"netapp","product":"solidfire_element_os"},{"vendor":"openbsd","product":"openssh"},{"vendor":"siemens","product":"simatic s7-1500 cpu 1518-4 pn/dp mfp (6es7518-4ax00-1ab0)"},{"vendor":"siemens","product":"simatic s7-1500 cpu 1518-4 pn/dp mfp (6es7518-4ax00-1ac0)"},{"vendor":"siemens","product":"simatic s7-1500 cpu 1518f-4 pn/dp mfp (6es7518-4fx00-1ab0)"},{"vendor":"siemens","product":"simatic s7-1500 cpu 1518f-4 pn/dp mfp (6es7518-4fx00-1ac0)"},{"vendor":"siemens","product":"siplus s7-1500 cpu 1518-4 pn/dp mfp (6ag1518-4ax00-4ac0)"}],"references":[{"url":"https://www.openwall.com/lists/oss-security/2023/03/15/8","tags":["x_transferred","Mailing List","Release Notes","advisory","web","report"]},{"url":"https://security.netapp.com/advisory/ntap-20230413-0008/","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://security.gentoo.org/glsa/202307-01","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.debian.org/security/2023/dsa-5586","tags":["vendor-advisory","x_transferred","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AN2UDTXEUSKFIOIYMV6JNI5VSBMYZOFT/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AN2UDTXEUSKFIOIYMV6JNI5VSBMYZOFT/","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28531","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AN2UDTXEUSKFIOIYMV6JNI5VSBMYZOFT"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AN2UDTXEUSKFIOIYMV6JNI5VSBMYZOFT"},{"url":"https://security.netapp.com/advisory/ntap-20230413-0008"},{"url":"https://github.com/advisories/GHSA-j839-ff8c-f62x"},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-28531","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2023-28531","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-28531","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-28531","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-6560-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-28531","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2023-48795","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2023-28531","description":"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.","status":"published","published":"2023-03-17T00:00:00Z","modified":"2026-11-10T12:28:57.182Z","cwes":["CWE-284"],"updated_at":"2026-11-10T13:38:44.039016Z"}],"euvd":[{"id":"EUVD-2023-32201","description":"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.","status":"published","published":"2023-03-17T00:00:00Z","modified":"2026-11-10T12:28:57Z","updated_at":"2026-11-10T13:21:01.211897Z"}],"ghsa":[{"id":"GHSA-j839-ff8c-f62x","title":"ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop...","description":"ssh-add in OpenSSH before 9.3 adds smartcard keys to ssh-agent without the intended per-hop destination constraints.","status":"published","published":"2023-03-17T06:30:34Z","modified":"2026-10-15T00:31:41Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-284"],"updated_at":"2026-11-02T15:13:29.914076Z"}],"nvd":[{"id":"CVE-2023-28531","description":"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.","status":"published","published":"2023-03-17T04:15:14.553Z","modified":"2026-11-10T13:17:19.61Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-284"],"updated_at":"2026-11-10T16:19:42.81013Z"}],"osv":[{"id":"ALPINE-CVE-2023-28531","description":"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.","status":"published","published":"2023-03-17T04:15:14.553Z","modified":"2026-10-26T17:17:58.618602388Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:27:49.202584Z"},{"id":"AZL-25662","title":"CVE-2023-28531 affecting package openssh for versions less than 8.9p1-5","description":"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.","status":"published","published":"2023-03-17T04:15:14Z","modified":"2026-04-21T04:23:10.685462Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:28:03.093433Z"},{"id":"BELL-CVE-2023-28531","title":"CVE-2023-28531 does not affect BellSoft software","status":"withdrawn","published":"2023-08-31T12:21:31.826832Z","modified":"2026-01-26T09:47:09.994457Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:28:17.742221Z"},{"id":"CVE-2023-28531","description":"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.","status":"published","published":"2023-03-17T04:15:14.553Z","modified":"2026-03-15T22:46:40.590932Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:31.468318Z"},{"id":"DEBIAN-CVE-2023-28531","description":"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.","status":"published","published":"2023-03-17T04:15:14.553Z","modified":"2026-11-11T09:47:46.856440221Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-11T10:35:40.696585Z"},{"id":"JLSEC-2026-67","description":"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.","status":"published","published":"2026-04-09T21:32:46.691Z","modified":"2026-07-18T00:01:01.938519549Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:47:19.003546Z"},{"id":"UBUNTU-CVE-2023-28531","description":"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.","status":"published","published":"2023-03-17T04:15:00Z","modified":"2026-02-04T03:20:08.307021Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:54:20.997471Z"},{"id":"USN-6560-1","title":"openssh vulnerabilities","description":"Fabian Bäumer, Marcus Brinkmann, Jörg Schwenk discovered that the SSH\nprotocol was vulnerable to a prefix truncation attack. If a remote attacker\nwas able to intercept SSH communications, extension negotiation messages\ncould be truncated, possibly leading to certain algorithms and features\nbeing downgraded. This issue is known as the Terrapin attack. This update\nadds protocol extensions to mitigate this issue. (CVE-2023-48795)\n\nLuci Stanescu discovered that OpenSSH incorrectly added destination\nconstraints when smartcard keys were added to ssh-agent, contrary to\nexpectations. This issue only affected Ubuntu 22.04 LTS, and Ubuntu 23.04.\n(CVE-2023-28531)\n","status":"published","published":"2023-12-19T13:02:10Z","modified":"2026-04-27T17:17:25.957304022Z","updated_at":"2026-11-02T16:58:17.305935Z"}]}}
