CVE-2024-27354: Php phpseclib · An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x
Affects php-phpseclibSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 7.5 High · fixed in 2.0.1-1ubuntu0.1~esm2 : patch php-phpseclib soon.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.0.1-1ubuntu0.1~esm2, 1.0.1-3ubuntu0.1+esm1, 2.0.9-1ubuntu0.1~esm2 +7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 22.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSphp-phpseclibpkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSphp-phpseclib3pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSphp-phpseclibpkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-27354 (opens in a new tab)
- github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-27354 (opens in a new tab)
- ubuntu.com/security/notices/USN-7404-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8769-1 (opens in a new tab)