{"id":"CVE-2024-27354","aliases":["CLSA-2026-1783386122","DEBIAN-CVE-2024-27354","DLA-3749-1","DLA-3750-1","EUVD-2024-0936","GHSA-2528-jw5q-ww88","GHSA-hg35-mp25-qf6h","UBUNTU-CVE-2024-27354","USN-7404-1","USN-8769-1"],"status":"published","title":"phpseclib: guardrails needed on isPrime and randomPrime","description":"An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-12","score":0.00601,"percentile":0.49274,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2024-03-01T00:00:00Z","modified":"2026-11-02T12:02:02Z","fixes":[{"ecosystem":"Packagist","package":"phpseclib/phpseclib","fixed_in":["1.0.23","2.0.47","3.0.36"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:Packagist","package":"phpseclib/phpseclib","fixed_in":["0.3.10-p3+tuxcare"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"php-phpseclib","fixed_in":["2.0.42-1+deb12u2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"php-phpseclib","fixed_in":["2.0.47-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"php-phpseclib","fixed_in":["2.0.47-1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"php-phpseclib3","fixed_in":["3.0.19-1+deb12u3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"php-phpseclib3","fixed_in":["3.0.36-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"php-phpseclib3","fixed_in":["3.0.36-1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"phpseclib","fixed_in":["1.0.20-1+deb12u2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"phpseclib","fixed_in":["1.0.23-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"php-phpseclib","fixed_in":["2.0.1-1ubuntu0.1~esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"phpseclib","fixed_in":["1.0.1-3ubuntu0.1+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"php-phpseclib","fixed_in":["2.0.9-1ubuntu0.1~esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"phpseclib","fixed_in":["1.0.9-1ubuntu0.1~esm1"],"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"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"phpseclib","fixed_in":["1.0.20-1+deb12u3build0.22.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"php-phpseclib","fixed_in":["2.0.36-1ubuntu0.1~esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"php-phpseclib3","fixed_in":["3.0.13-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"phpseclib","fixed_in":["1.0.20-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.1"},{"fixed":"1.0.23"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.47"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.36"}]}]},{"source":"osv","ecosystem":"TuxCare:Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.10"},{"fixed":"0.3.10-p3+tuxcare"}]}],"versions":["0.3.10","0.3.10-p1+tuxcare","0.3.10-p2+tuxcare"]},{"source":"osv","ecosystem":"Debian:12","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.42-1+deb12u2"}]}],"versions":["2.0.42-1","2.0.42-1+deb12u1"]},{"source":"osv","ecosystem":"Debian:13","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.47-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.47-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.19-1+deb12u3"}]}],"versions":["3.0.19-1","3.0.19-1+deb12u1","3.0.19-1+deb12u2"]},{"source":"osv","ecosystem":"Debian:13","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.36-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.36-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.20-1+deb12u2"}]}],"versions":["1.0.20-1","1.0.20-1+deb12u1"]},{"source":"osv","ecosystem":"Debian:13","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.23-1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.19-3~deb10u3"}]}],"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","1.0.19-3~deb10u1","1.0.19-3~deb10u2"],"bundled":2},{"source":"osv","ecosystem":"Debian:10","package":"php-phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.30-2~deb10u3"}]}],"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","2.0.30-2~deb10u1","2.0.30-2~deb10u2"],"bundled":2},{"source":"osv","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.1"},{"fixed":"1.0.23"}]}],"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.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9"]},{"source":"osv","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.47"}]}],"versions":["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.31","2.0.32","2.0.33","2.0.34","2.0.35","2.0.36","2.0.37","2.0.38","2.0.39","2.0.4","2.0.40","2.0.41","2.0.42","2.0.43","2.0.44","2.0.45","2.0.46","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9"]},{"source":"osv","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.36"}]}],"versions":["3.0.0","3.0.1","3.0.10","3.0.11","3.0.12","3.0.13","3.0.14","3.0.15","3.0.16","3.0.17","3.0.18","3.0.19","3.0.2","3.0.20","3.0.21","3.0.22","3.0.23","3.0.3","3.0.33","3.0.34","3.0.35","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9"]},{"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"]},{"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"]},{"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"]},{"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"]},{"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:22.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.20-1+deb12u3build0.22.04.1"}]}],"versions":["1.0.19-3ubuntu2","1.0.19-3ubuntu3","1.0.20-1"]},{"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"]},{"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"]},{"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"]},{"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},{"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":5},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.9-1ubuntu0.1~esm2"}]}],"versions":["1.0.7-1","1.0.8-1","1.0.9-1","1.0.9-1ubuntu0.1~esm1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.18-2ubuntu0.1~esm2"}]}],"versions":["1.0.16-2","1.0.18-2","1.0.18-2ubuntu0.1~esm1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.20-1+deb12u3build0.22.04.1"}]}],"versions":["1.0.19-3ubuntu2","1.0.19-3ubuntu3","1.0.20-1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.23-1ubuntu0.1~esm1"}]}],"versions":["1.0.21-2","1.0.22-1","1.0.23-1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:26.04:LTS","package":"phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.24-1ubuntu0.1~esm1"}]}],"versions":["1.0.23-6","1.0.24-1"],"bundled":5}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"phpseclib","product":"1x"},{"vendor":"phpseclib","product":"2x"},{"vendor":"phpseclib","product":"3x"},{"vendor":"phpseclib","product":"phpseclib"}],"references":[{"url":"https://github.com/phpseclib/phpseclib/blob/master/phpseclib/Math/PrimeField.php#L49","tags":["x_transferred","Product","web"]},{"url":"https://gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00002.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00003.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article","web"]},{"url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-2528-jw5q-ww88","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27354","tags":["advisory"]},{"url":"https://github.com/phpseclib/phpseclib/commit/2870c8fab3f132d2ed40a66c97a36fe5ab625698","tags":["web"]},{"url":"https://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575","tags":["web","report"]},{"url":"https://github.com/phpseclib/phpseclib/commit/c55b75199ec8d12cec6eadf6da99da4a3712fe56","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2024-27354.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2528-jw5q-ww88"},{"url":"https://github.com/advisories/GHSA-hg35-mp25-qf6h","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27354.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-27354","tags":["advisory"]},{"url":"https://github.com/phpseclib/phpseclib","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-27354","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-27354","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7404-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8769-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-30130","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2023-52892","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-27355","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2023-48795","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2026-32935","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-27354","description":"An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.","status":"published","published":"2024-03-01T00:00:00Z","modified":"2025-04-22T15:44:47.697Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:34:12.982241Z"}],"euvd":[{"id":"EUVD-2024-0936","description":"phpseclib: guardrails needed on isPrime and randomPrime","status":"published","published":"2026-05-06T17:57:10Z","modified":"2026-05-06T17:57:10Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T19:05:16.191098Z"}],"ghsa":[{"id":"GHSA-2528-jw5q-ww88","title":"phpseclib: guardrails needed on isPrime and randomPrime","description":"### Impact\nAnyone trying to generate a prime and testing the primality of a number.\n\n### Patches\nhttps://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575\n\n### Workarounds\nUsing the GMP extension would probably help, assuming that one has its own guardrails.\n\n### Resources\nhttps://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575\nhttps://www.usenix.org/system/files/conference/usenixsecurity25/sec25cycle1-prepub-599-shi-bing.pdf","status":"published","published":"2026-05-06T17:57:10Z","modified":"2026-05-06T17:57:11Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:40:01.917039Z"},{"id":"GHSA-hg35-mp25-qf6h","title":"Duplicate Advisory: phpseclib: guardrails needed on isPrime and randomPrime","description":"### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-2528-jw5q-ww88. This link is maintained to preserve external references.\n\n### Original Description\nAn issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.","status":"withdrawn","published":"2024-03-02T00:31:33Z","modified":"2026-05-06T17:56:51Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:40:01.917039Z"}],"nvd":[{"id":"CVE-2024-27354","description":"An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.","status":"published","published":"2024-03-01T23:15:08.5Z","modified":"2026-06-17T07:19:42.953Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:09:38.473056Z"}],"osv":[{"id":"CVE-2024-27354","description":"An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.","status":"published","published":"2024-03-01T00:00:00Z","modified":"2026-10-28T02:31:02.847233156Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:39.569658Z"},{"id":"DEBIAN-CVE-2024-27354","description":"An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.","status":"published","published":"2024-03-01T23:15:08.5Z","modified":"2026-11-02T12:02:02.217192354Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:42.204259Z"},{"id":"GHSA-2528-jw5q-ww88","title":"phpseclib: guardrails needed on isPrime and randomPrime","description":"### Impact\nAnyone trying to generate a prime and testing the primality of a number.\n\n### Patches\nhttps://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575\n\n### Workarounds\nUsing the GMP extension would probably help, assuming that one has its own guardrails.\n\n### Resources\nhttps://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575\nhttps://www.usenix.org/system/files/conference/usenixsecurity25/sec25cycle1-prepub-599-shi-bing.pdf","status":"published","published":"2026-05-06T17:57:10Z","modified":"2026-05-06T18:11:13.420206Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:33.956911Z"},{"id":"GHSA-hg35-mp25-qf6h","title":"Duplicate Advisory: phpseclib: guardrails needed on isPrime and randomPrime","description":"### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-2528-jw5q-ww88. This link is maintained to preserve external references.\n\n### Original Description\nAn issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.","status":"withdrawn","published":"2024-03-02T00:31:33Z","modified":"2026-09-10T03:50:10.583373236Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:48.920784Z"},{"id":"UBUNTU-CVE-2024-27354","description":"An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.","status":"published","published":"2024-03-01T23:15:00Z","modified":"2026-10-06T23:30:57.044530585Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:48.333535Z"},{"id":"CLSA-2026-1783386122","title":"TuxCare security update for phpseclib/phpseclib (1 CVE)","description":"TuxCare rebuilt phpseclib/phpseclib to address 1 CVE. Fixed in 0.3.10-p3+tuxcare.","status":"published","published":"2026-08-04T14:52:42Z","modified":"2026-10-15T09:47:47.844379593Z","updated_at":"2026-11-02T15:43:45.794021Z"},{"id":"DLA-3749-1","title":"phpseclib - security update","status":"published","published":"2024-03-05T00:00:00Z","modified":"2026-03-09T01:20:45.512058Z","updated_at":"2026-11-02T15:46:12.203458Z"},{"id":"DLA-3750-1","title":"php-phpseclib - security update","status":"published","published":"2024-03-05T00:00:00Z","modified":"2026-03-09T01:20:55.72159Z","updated_at":"2026-11-02T15:46:12.203458Z"},{"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"},{"id":"USN-8769-1","title":"phpseclib vulnerability","description":"It was discovered that phpseclib did not perform padding validation in\nconstant time when using AES in CBC mode. A remote attacker could possibly\nuse this issue to conduct a padding oracle timing attack and obtain\nsensitive information.","status":"published","published":"2026-09-15T15:59:40Z","modified":"2026-09-16T02:57:28.071001132Z","updated_at":"2026-11-02T16:58:26.907654Z"}]}}
