cve.bz

CVE-2024-27354 Uncontrolled Resource Consumption

7.5 highEPSS 0.6%Fix available

High (7.5). EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in phpseclib/phpseclib 1.0.23, 2.0.47, 3.0.36.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-03-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-27354 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-27354?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-27354?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-27354 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
phpseclib:phpseclibfrom 1.0.0 before 1.0.23
phpseclib:phpseclibfrom 2.0.0 before 2.0.47
phpseclib:phpseclibfrom 3.0.0 before 3.0.36
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2528-jw5q-ww88Packagistphpseclib/phpseclib>=0.1.1 <1.0.231.0.23
GHSA-2528-jw5q-ww88Packagistphpseclib/phpseclib>=2.0.0 <2.0.472.0.47
GHSA-2528-jw5q-ww88Packagistphpseclib/phpseclib>=3.0.0 <3.0.363.0.36

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10php-phpseclib2.0.30-2~deb10u3DLA-3750-1
Debian10phpseclib1.0.19-3~deb10u3DLA-3749-1
Debian12php-phpseclib2.0.42-1+deb12u2DEBIAN-CVE-2024-27354
Debian12php-phpseclib33.0.19-1+deb12u3DEBIAN-CVE-2024-27354
Debian12phpseclib1.0.20-1+deb12u2DEBIAN-CVE-2024-27354
Debian13phpseclib1.0.23-1DEBIAN-CVE-2024-27354
Debian13, 14php-phpseclib2.0.47-1DEBIAN-CVE-2024-27354
Debian13, 14php-phpseclib33.0.36-1DEBIAN-CVE-2024-27354
Ubuntu22.04:LTSphpseclib1.0.20-1+deb12u3build0.22.04.1UBUNTU-CVE-2024-27354 USN-8769-1
UbuntuPro:16.04:LTSphp-phpseclib2.0.1-1ubuntu0.1~esm2UBUNTU-CVE-2024-27354 USN-7404-1
UbuntuPro:16.04:LTSphpseclib1.0.1-3ubuntu0.1+esm1UBUNTU-CVE-2024-27354 USN-7404-1 USN-8769-1
UbuntuPro:18.04:LTSphp-phpseclib2.0.9-1ubuntu0.1~esm2UBUNTU-CVE-2024-27354 USN-7404-1
UbuntuPro:18.04:LTSphpseclib1.0.9-1ubuntu0.1~esm1UBUNTU-CVE-2024-27354 USN-7404-1 USN-8769-1
UbuntuPro:20.04:LTSphp-phpseclib2.0.23-2ubuntu0.1~esm2UBUNTU-CVE-2024-27354 USN-7404-1
UbuntuPro:20.04:LTSphpseclib1.0.18-2ubuntu0.1~esm1UBUNTU-CVE-2024-27354 USN-7404-1 USN-8769-1
UbuntuPro:22.04:LTSphp-phpseclib2.0.36-1ubuntu0.1~esm2UBUNTU-CVE-2024-27354 USN-7404-1
UbuntuPro:22.04:LTSphp-phpseclib33.0.13-1ubuntu0.1~esm1UBUNTU-CVE-2024-27354 USN-7404-1
UbuntuPro:22.04:LTSphpseclib1.0.20-1ubuntu0.1~esm1UBUNTU-CVE-2024-27354 USN-7404-1
UbuntuPro:24.04:LTSphpseclib1.0.23-1ubuntu0.1~esm1USN-8769-1
UbuntuPro:26.04:LTSphpseclib1.0.24-1ubuntu0.1~esm1USN-8769-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON