Skip to main content
VulnerabilityPublished Updated

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

0
Compare

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

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Mar 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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.

Affected software

ProductAffectedFixed in
Ubuntu 22.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=jammyOther threatsAffected
  • <1.0.20-1+deb12u3build0.22.04.1
Fixed in
  • 1.0.20-1+deb12u3build0.22.04.1
Ubuntu Pro 22.04 LTSphp-phpseclibpkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <2.0.36-1ubuntu0.1~esm2
Fixed in
  • 2.0.36-1ubuntu0.1~esm2
Ubuntu Pro 22.04 LTSphp-phpseclib3pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <3.0.13-1ubuntu0.1~esm1
Fixed in
  • 3.0.13-1ubuntu0.1~esm1
Ubuntu Pro 22.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <1.0.20-1ubuntu0.1~esm1
Fixed in
  • 1.0.20-1ubuntu0.1~esm1
Ubuntu Pro 20.04 LTSphp-phpseclibpkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/focalOther threatsAffected
  • <2.0.23-2ubuntu0.1~esm2
Fixed in
  • 2.0.23-2ubuntu0.1~esm2
Ubuntu Pro 20.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/focalOther threatsAffected
  • <1.0.18-2ubuntu0.1~esm1
Fixed in
  • 1.0.18-2ubuntu0.1~esm1

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

Community reviews

Loading reviews…