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)

EPSS: 0.006 (45.2th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-27354?
CVE-2024-27354 is a high-severity vulnerability in Phpseclib, classified under Uncontrolled Resource Consumption. CVSS score: 7.5/10. Published 2024-03-01.
How severe is CVE-2024-27354?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2024-27354 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.