{"id":"CVE-2021-30130","aliases":["CLSA-2026-1779065206","DEBIAN-CVE-2021-30130","DLA-3197-1","DLA-3198-1","EUVD-2021-0879","GHSA-vf4w-fg7r-5v94","UBUNTU-CVE-2021-30130","USN-7404-1"],"status":"published","title":"Improper Certificate Validation in phpseclib","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01055,"percentile":0.64697,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-295","CWE-347"],"published":"2021-04-06T00:00:00Z","modified":"2026-10-23T18:04:00Z","fixes":[{"ecosystem":"Packagist","package":"phpseclib/phpseclib","fixed_in":["3.0.7","2.0.31"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"php-phpseclib","fixed_in":["2.0.30-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"php-phpseclib","fixed_in":["2.0.30-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"php-phpseclib","fixed_in":["2.0.30-2"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"php-phpseclib3","fixed_in":["3.0.7-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"php-phpseclib3","fixed_in":["3.0.7-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"php-phpseclib3","fixed_in":["3.0.7-1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"phpseclib","fixed_in":["1.0.19-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"phpseclib","fixed_in":["1.0.19-3"],"sources":["osv"]},{"ecosystem":"Debian:10","package":"phpseclib","fixed_in":["1.0.19-3~deb10u1"],"sources":["osv"]},{"ecosystem":"Debian:10","package":"php-phpseclib","fixed_in":["2.0.30-2~deb10u1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"php-phpseclib","fixed_in":["2.0.23-2ubuntu0.1~esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"phpseclib","fixed_in":["1.0.18-2ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.7"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.31"}]}]},{"source":"osv","ecosystem":"TuxCare:Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.10"},{"fixed":"0.3.10-p1+tuxcare"}]}],"versions":["0.3.10"],"bundled":4},{"source":"osv","ecosystem":"Debian:12","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.30-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.30-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.30-2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.7-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.7-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.7-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.19-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.19-3"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.19-3~deb10u1"}]}],"versions":["1.0.14-1","1.0.15-1","1.0.16-1","1.0.16-2","1.0.17-1","1.0.18-1","1.0.18-2","1.0.19-1","1.0.19-2"]},{"source":"osv","ecosystem":"Debian:10","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.30-2~deb10u1"}]}],"versions":["2.0.14-1","2.0.15-1","2.0.17-1","2.0.18-1","2.0.19-1","2.0.20-1","2.0.21-1","2.0.21-2","2.0.21-3","2.0.22-1","2.0.23-1","2.0.23-2","2.0.25-1","2.0.26-1","2.0.27-1","2.0.28-1","2.0.29-1","2.0.29-2","2.0.30-1"]},{"source":"osv","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.7"}]}],"versions":["3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6"]},{"source":"osv","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.31"}]}],"versions":["0.3.0","0.3.1","0.3.10","0.3.5","0.3.6","0.3.7","0.3.8","0.3.9","1.0.0","1.0.1","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.15","1.0.16","1.0.17","1.0.18","1.0.19","1.0.2","1.0.20","1.0.21","1.0.22","1.0.23","1.0.24","1.0.25","1.0.26","1.0.27","1.0.28","1.0.29","1.0.3","1.0.30","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","2.0.0","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.22","2.0.23","2.0.24","2.0.25","2.0.26","2.0.27","2.0.28","2.0.29","2.0.3","2.0.30","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.23-2ubuntu0.1~esm2"}]}],"versions":["2.0.21-2","2.0.23-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.18-2ubuntu0.1~esm1"}]}],"versions":["1.0.16-2","1.0.18-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.1-1ubuntu0.1~esm2"}]}],"versions":["2.0.1-1","2.0.1-1build1"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.1-3ubuntu0.1+esm1"}]}],"versions":["0.3.10-3","1.0.0-2","1.0.0-3","1.0.1-1","1.0.1-3","1.0.1-3ubuntu0.1"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.9-1ubuntu0.1~esm2"}]}],"versions":["2.0.6-1","2.0.7-1","2.0.9-1"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.9-1ubuntu0.1~esm1"}]}],"versions":["1.0.7-1","1.0.8-1","1.0.9-1"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.23-2ubuntu0.1~esm2"}]}],"versions":["2.0.21-2","2.0.23-2"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.18-2ubuntu0.1~esm1"}]}],"versions":["1.0.16-2","1.0.18-2"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.36-1ubuntu0.1~esm2"}]}],"versions":["2.0.30-2ubuntu1","2.0.34-1","2.0.35-1","2.0.36-1"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.13-1ubuntu0.1~esm1"}]}],"versions":["3.0.9-1","3.0.10-1","3.0.12-2","3.0.13-1"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.20-1ubuntu0.1~esm1"}]}],"versions":["1.0.19-3ubuntu2","1.0.19-3ubuntu3","1.0.20-1"],"bundled":4}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"phpseclib","product":"phpseclib"}],"references":[{"url":"https://github.com/phpseclib/phpseclib/pull/1635","tags":["x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.7","tags":["x_transferred","Release Notes","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/2.0.31","tags":["x_transferred","Release Notes","Third Party Advisory","advisory","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00024.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00025.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30130","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2021-30130.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-vf4w-fg7r-5v94"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-30130","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-30130","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-30130","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7404-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-52892","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-27354","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-27355","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-30130","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","status":"published","published":"2021-04-06T00:00:00Z","modified":"2024-08-03T22:24:59.565Z","updated_at":"2026-11-02T14:33:02.20241Z"}],"euvd":[{"id":"EUVD-2021-0879","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","status":"published","published":"2021-04-06T00:00:00Z","modified":"2024-08-03T22:24:59Z","updated_at":"2026-11-03T03:24:43.413555Z"}],"ghsa":[{"id":"GHSA-vf4w-fg7r-5v94","title":"Improper Certificate Validation in phpseclib","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","status":"published","published":"2021-04-07T20:56:55Z","modified":"2024-02-07T18:14:47Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-295","CWE-347"],"updated_at":"2026-11-02T14:37:36.076201Z"}],"nvd":[{"id":"CVE-2021-30130","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","status":"published","published":"2021-04-06T15:15:13.497Z","modified":"2026-06-17T03:49:43.327Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-347"],"updated_at":"2026-11-02T14:06:51.610648Z"}],"osv":[{"id":"CVE-2021-30130","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","status":"published","published":"2021-04-06T15:15:13.497Z","modified":"2026-10-20T10:54:40.184511316Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"DEBIAN-CVE-2021-30130","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","status":"published","published":"2021-04-06T15:15:13.497Z","modified":"2026-10-23T18:04:00.048934949Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"GHSA-vf4w-fg7r-5v94","title":"Improper Certificate Validation in phpseclib","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","status":"published","published":"2021-04-07T20:56:55Z","modified":"2026-09-10T03:49:04.088139485Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-295","CWE-347"],"updated_at":"2026-11-02T15:46:56.981655Z"},{"id":"UBUNTU-CVE-2021-30130","description":"phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.","status":"published","published":"2021-04-06T15:15:00Z","modified":"2026-02-04T04:40:37.802161Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:54:27.332852Z"},{"id":"CLSA-2026-1779065206","title":"TuxCare security update for phpseclib/phpseclib (4 CVEs)","description":"TuxCare rebuilt phpseclib/phpseclib to address 4 CVEs. Fixed in 0.3.10-p1+tuxcare.","status":"published","published":"2026-08-04T14:52:32Z","modified":"2026-10-15T09:47:41.999375702Z","updated_at":"2026-11-02T15:43:44.737408Z"},{"id":"DLA-3197-1","title":"phpseclib - security update","status":"published","published":"2022-11-17T00:00:00Z","modified":"2026-03-09T01:21:37.092944Z","updated_at":"2026-11-02T15:46:11.734021Z"},{"id":"DLA-3198-1","title":"php-phpseclib - security update","status":"published","published":"2022-11-17T00:00:00Z","modified":"2026-03-09T01:17:48.700789Z","updated_at":"2026-11-02T15:46:11.734021Z"},{"id":"USN-7404-1","title":"phpseclib vulnerabilities","description":"It was discovered that phpseclib did not correctly handle RSA PKCS#1\nv1.5 signature verification. An attacker could possibly use this issue to\nbypass authentication. This issue only affected Ubuntu 20.04 LTS.\n(CVE-2021-30130)\n\nIt was discovered that phpseclib did not correctly handle certain\ncharacters in certain TLS fields, which could lead to name confusion.\nAn attacker could possibly use this issue to bypass authentication.\n(CVE-2023-52892)\n\nIt was discovered that phpseclib incorrectly limited the size of prime\nnumbers generated by isPrime. An attacker could possibly use this issue\nto cause a denial of service. (CVE-2024-27354)\n\nIt was discovered that phpseclib did not correctly handle processing the\nASN.1 object identifier of a certificate. An attacker could possibly use\nthis issue to cause a denial of service. This issue only affected\nUbuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-27355)\n","status":"published","published":"2025-04-02T01:35:46Z","modified":"2026-06-25T13:32:30.293856464Z","updated_at":"2026-11-02T16:58:19.988474Z"}]}}
