{"id":"CVE-2024-27354","published":"2024-03-01T00:00:00Z","modified":"2025-04-22T15:44:47Z","title":"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","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00778,"percentile":0.52306,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/phpseclib/phpseclib/blob/master/phpseclib/Math/PrimeField.php#L49","tags":[]},{"url":"https://gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00002.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00003.html","tags":["mailing-list"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":10.46},{"name":"CVSS severity","points":5.25}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-03-06T15:59:46.617242Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpseclib/phpseclib","vulnerableRanges":[">=0.1.1, <1.0.23",">=2.0.0, <2.0.47",">=3.0.0, <3.0.36"],"patched":["1.0.23","2.0.47","3.0.36"],"from":["GHSA-2528-jw5q-ww88"],"provenance":"source"}],"summary":{"text":"The flaw is in phpseclib, a PHP cryptography library, affecting its 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36 release lines, where certificate parsing is involved. An attacker can construct a malformed certificate containing an extremely large prime, which causes excessive CPU consumption during the primality check and results in denial of service; the attacker needs only network access, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:32Z"},"euvd":{"id":"EUVD-2024-0936","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-27560","published":"2023-03-03","fixed":"3.0.19","kev":false},{"cve":"CVE-2023-52892","published":"2024-06-27","fixed":"3.0.33","kev":false},{"cve":"CVE-2023-49316","published":"2023-11-27","fixed":"3.0.34","kev":false,"link":{"from":"CVE-2023-49316","to":"CVE-2024-27354","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpseclib/phpseclib","fromFixed":"3.0.34","toFixed":"3.0.36","daysApart":95}]}},{"cve":"CVE-2024-27354","published":"2024-03-01","fixed":"3.0.36","kev":false},{"cve":"CVE-2024-27355","published":"2024-03-01","fixed":"3.0.36","kev":false},{"cve":"CVE-2026-32935","published":"2026-03-20","fixed":"3.0.50","kev":false},{"cve":"CVE-2026-40194","published":"2026-04-10","fixed":"3.0.51","kev":false}],"package":"Packagist:phpseclib/phpseclib"}}