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.
CVE-2024-27354
This high-severity CVE scores 7.5 under NVD CVSS v3. EPSS exploit probability: 0.6%, top 55% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 7.5(medium)
- EG Risk
- 49(Track)EG Risk 49/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity75% × 45%Exploitation1% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 46%
- KEV
- Not listed
Published
March 1, 2024
Last Modified
September 15, 2025
References (8)
- cve@mitrehttps://gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b
- cve@mitrehttps://github.com/phpseclib/phpseclib/blob/master/phpseclib/Math/PrimeField.php#L49
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2024/03/msg00002.html
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2024/03/msg00003.html
- af854a3a-2127-422b-91ae-364da2661108https://gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b
- af854a3a-2127-422b-91ae-364da2661108https://github.com/phpseclib/phpseclib/blob/master/phpseclib/Math/PrimeField.php#L49
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/03/msg00002.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/03/msg00003.html
Patch Availability(1)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | php-seclib (1.0.1-3ubuntu0.1+esm1) @ xenial | 2026-05-24 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(13 across 6 ecosystems)
Debian:12(3)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| php-phpseclib | 2.0.42-1, 2.0.42-1+deb12u1 | 2.0.42-1+deb12u2 | — |
| php-phpseclib3 | 3.0.19-1, 3.0.19-1+deb12u1, 3.0.19-1+deb12u2 | 3.0.19-1+deb12u3 | — |
| phpseclib | 1.0.20-1, 1.0.20-1+deb12u1 | 1.0.20-1+deb12u2 | — |
Debian:13(3)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| php-phpseclib | — | 2.0.47-1 | — |
| php-phpseclib3 | — | 3.0.36-1 | — |
| phpseclib | — | 1.0.23-1 | — |
Debian:10(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| php-phpseclib | 2.0.14-1 ... 2.0.30-2~deb10u2 (21 versions) | 2.0.30-2~deb10u3 | — |
| phpseclib | 1.0.14-1 ... 1.0.19-3~deb10u2 (11 versions) | 1.0.19-3~deb10u3 | — |
Debian:11(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| php-phpseclib | 2.0.30-2, 2.0.30-2+deb11u1 | 2.0.30-2+deb11u2 | — |
| phpseclib | 1.0.19-3, 1.0.19-3+deb11u1 | 1.0.19-3+deb11u2 | — |
Debian:14(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| php-phpseclib | — | 2.0.47-1 | — |
| php-phpseclib3 | — | 3.0.36-1 | — |
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| phpseclib/phpseclib | 3.0.0 ... 3.0.9 (27 versions) | 3.0.36 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(1)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 8× in last 7d / 31× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 171 total refreshes for this CVE.
- 2026-09-24 14:01 UTCEPSS rescore
- 2026-09-23 13:46 UTCEPSS rescore
- 2026-09-23 13:46 UTCEPSS rescore
- 2026-09-22 14:46 UTCEPSS rescore
- 2026-09-22 06:16 UTCOSV refresh
- 2026-09-20 20:14 UTCEPSS rescore
- 2026-09-19 15:40 UTCEPSS rescore
- 2026-09-18 19:26 UTCEPSS rescore
- 2026-09-16 14:06 UTCEPSS rescore
- 2026-09-16 14:06 UTCEPSS rescore
- 2026-09-15 03:08 UTCEPSS rescore
- 2026-09-15 03:08 UTCEPSS rescore
- 2026-09-13 16:45 UTCEPSS rescore
- 2026-09-12 14:59 UTCEPSS rescore
- 2026-09-11 14:51 UTCEPSS rescore
- 2026-09-11 09:35 UTCEPSS rescore
- 2026-09-08 21:58 UTCEPSS rescore
- 2026-09-07 15:59 UTCEPSS rescore
- 2026-09-06 13:46 UTCEPSS rescore
- 2026-09-06 13:46 UTCEPSS rescore
- 2026-09-05 15:26 UTCEPSS rescore
- 2026-09-04 13:58 UTCEPSS rescore
- 2026-09-04 05:05 UTCEPSS rescore
- 2026-09-03 03:59 UTCOSV refresh
- 2026-09-02 14:10 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-09-01 13:52 UTCEPSS rescore
- 2026-08-30 19:15 UTCEPSS rescore
- 2026-08-30 01:20 UTCEPSS rescore
- 2026-08-28 21:39 UTCEPSS rescore
- 2026-08-27 14:23 UTCEPSS rescore
- 2026-08-26 14:44 UTCEPSS rescore
- 2026-08-25 13:47 UTCEPSS rescore
- 2026-08-23 00:17 UTCEPSS rescore
- 2026-08-21 23:47 UTCEPSS rescore
- 2026-08-20 22:53 UTCEPSS rescore
- 2026-08-19 17:02 UTCEPSS rescore
- 2026-08-18 13:46 UTCEPSS rescore
- 2026-08-17 13:45 UTCEPSS rescore
- 2026-08-16 16:56 UTCOSV refresh
- 2026-08-16 14:54 UTCEPSS rescore
- 2026-08-16 14:54 UTCEPSS rescore
- 2026-08-16 02:12 UTCEPSS rescore
- 2026-08-15 01:28 UTCEPSS rescore
- 2026-08-13 21:58 UTCEPSS rescore
- 2026-08-12 13:49 UTCEPSS rescore
- 2026-08-11 13:40 UTCEPSS rescore
- 2026-08-09 13:45 UTCEPSS rescore
- 2026-08-08 16:35 UTCEPSS rescore
- 2026-08-06 13:45 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-04 15:08 UTCEPSS rescore
- 2026-08-04 10:36 UTCEPSS rescore
- 2026-08-03 10:34 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-01 10:36 UTCOSV refresh
- 2026-08-01 04:14 UTCEPSS rescore
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 01:29 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-27 14:11 UTCEPSS rescore
- 2026-07-26 14:53 UTCEPSS rescore
- 2026-07-25 14:16 UTCEPSS rescore
- 2026-07-24 14:16 UTCEPSS rescore
- 2026-07-23 14:17 UTCEPSS rescore
- 2026-07-23 14:17 UTCEPSS rescore
- 2026-07-23 02:35 UTCEG score recompute
- 2026-07-22 14:07 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:06 UTCEPSS rescore
- 2026-07-19 14:30 UTCEPSS rescore
- 2026-07-19 14:30 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-14 17:55 UTCOSV refresh
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-01 15:05 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:10:php-phpseclib · Debian:11:php-phpseclib · Packagist:phpseclib/phpseclib
Same vendor
3 shownubuntu:USN-7404-1
Frequently asked(5)
What is CVE-2024-27354?
When was CVE-2024-27354 disclosed?
Is CVE-2024-27354 actively exploited?
What is the CVSS score of CVE-2024-27354?
How do I remediate CVE-2024-27354?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2024-27354
Is Your Infrastructure Affected by CVE-2024-27354?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.