Resource exhaustion in Phpseclib
CVE-2024-27354
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.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.006, 49.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Phpseclib
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cve-scores). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/phpseclib/phpseclib/blob/master/phpseclib/Math/PrimeField.php (Product)
- gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b (Third Party Advisory)
- [debian-lts-announce] 20240305 [SECURITY] [DLA 3749-1] phpseclib security update (mailing-list, Mailing List, Third Party Advisory)
- [debian-lts-announce] 20240305 [SECURITY] [DLA 3750-1] php-phpseclib security update (mailing-list, Mailing List, Third Party Advisory)