{"id":"CVE-2024-27354","aliases":["GHSA-2528-jw5q-ww88"],"url":"https://o3.security/vulnerability/CVE-2024-27354","summary":"phpseclib: guardrails needed on isPrime and randomPrime","details":"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.","published":"2024-03-01T00:00:00Z","modified":"2026-08-12T03:51:33.545584989Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.00601,"percentile":0.46033,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"phpseclib/phpseclib","fixedVersion":"1.0.23"},{"ecosystem":"Packagist","name":"phpseclib/phpseclib","fixedVersion":"2.0.47"},{"ecosystem":"Packagist","name":"phpseclib/phpseclib","fixedVersion":"3.0.36"}],"fix":{"url":"https://github.com/phpseclib/phpseclib/commit/2870c8fab3f132d2ed40a66c97a36fe5ab625698","label":"phpseclib/phpseclib@2870c8f"},"references":[{"type":"WEB","url":"https://gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b"},{"type":"WEB","url":"https://github.com/phpseclib/phpseclib/blob/master/phpseclib/Math/PrimeField.php#L49"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27354.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27354"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00002.html"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00003.html"},{"type":"WEB","url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-2528-jw5q-ww88"},{"type":"WEB","url":"https://github.com/phpseclib/phpseclib/commit/2870c8fab3f132d2ed40a66c97a36fe5ab625698"},{"type":"WEB","url":"https://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575"},{"type":"WEB","url":"https://github.com/phpseclib/phpseclib/commit/c55b75199ec8d12cec6eadf6da99da4a3712fe56"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2024-27354.yaml"},{"type":"PACKAGE","url":"https://github.com/phpseclib/phpseclib"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:33.545584989Z"}}