{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-27354","id":"CVE-2024-27354","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.","descriptionLong":"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:00.000Z","updated":"2026-10-28T02:31:02.847233156Z","reserved":"2024-02-25T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"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","rating":"high","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"},{"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","rating":"high","source":"CISA-ADP"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"phpseclib/phpseclib","purl":"pkg:composer/phpseclib/phpseclib","ranges":[">=0.1.1 <1.0.23",">=2.0.0 <2.0.47",">=3.0.0 <3.0.36"],"fixed":["1.0.23","2.0.47","3.0.36"],"advisory":"GHSA-2528-jw5q-ww88"}],"cwes":["CWE-400"],"aliases":["GHSA-2528-jw5q-ww88"],"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/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27354.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27354","tags":["advisory"]},{"url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-2528-jw5q-ww88","tags":["web"]},{"url":"https://github.com/phpseclib/phpseclib/commit/2870c8fab3f132d2ed40a66c97a36fe5ab625698","tags":["web"]},{"url":"https://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575","tags":["web"]},{"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/phpseclib/phpseclib","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00601,"epssPercentile":0.49716,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-27354","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27354","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-27354","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2528-jw5q-ww88","ok":true,"note":"GHSA-2528-jw5q-ww88"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-27354","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}