{"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-08T03:30:18.765377236Z","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.4551,"asOf":"2026-08-08"},"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":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:30:18.765377236Z"}}