CVEfocus › CVE database › CVE-2024-27354

CVE-2024-27354

CVSS 7.5 HighEPSS 0.8% (higher than 52% of CVEs)Published 2024-03-01Updated 2025-04-22Assigner: mitre

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.

CWE-400

What to do

Fixed builds are available from Debian, Packagist, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
9Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04php-phpseclib3Not affected
vulnerable_code_not_present
Ubuntu 25.10php-phpseclibNot affected
vulnerable_code_not_present
Ubuntu 25.10php-phpseclib3Not affected
vulnerable_code_not_present
Ubuntu 25.10phpseclibNot affected
vulnerable_code_not_present
Ubuntu 24.04php-phpseclib3Not affected
vulnerable_code_not_present
Ubuntu 22.04php-phpseclibFix pending2.0.36-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-27354
Ubuntu 22.04php-phpseclib3Fix pending3.0.13-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-27354
Ubuntu 22.04phpseclibFixed1.0.20-1+deb12u3build0.22.04.1UBUNTU-CVE-2024-27354
Ubuntu 20.04php-phpseclibFix pending2.0.23-2ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-27354
Ubuntu 20.04phpseclibFix pending1.0.18-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-27354
Ubuntu 18.04php-phpseclibFix pending2.0.9-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-27354
Ubuntu 18.04phpseclibFix pending1.0.9-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-27354
Ubuntu 16.04php-phpseclibFix pending2.0.1-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-27354
Ubuntu 16.04phpseclibFix pending1.0.1-3ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-27354
Ubuntu 14.04phpseclibFix pending
Debian 14php-phpseclibFixed2.0.47-1DEBIAN-CVE-2024-27354
Debian 14php-phpseclib3Fixed3.0.36-1DEBIAN-CVE-2024-27354
Debian 13php-phpseclibFixed2.0.47-1DEBIAN-CVE-2024-27354
Debian 13php-phpseclib3Fixed3.0.36-1DEBIAN-CVE-2024-27354
Debian 13phpseclibFixed1.0.23-1DEBIAN-CVE-2024-27354
Debian 12php-phpseclibFixed2.0.42-1+deb12u2DEBIAN-CVE-2024-27354
Debian 12php-phpseclib3Fixed3.0.19-1+deb12u3DEBIAN-CVE-2024-27354
Debian 12phpseclibFixed1.0.20-1+deb12u2DEBIAN-CVE-2024-27354
Packagist libraryphpseclib/phpseclibFixed3.0.36GHSA-2528-jw5q-ww88

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.