Vulnerability · Published Mar 1, 2024 · Assigned by mitre

CVE-2024-27354

High 7.5

In plain English

A high-severity uncontrolled resource consumption in the php-phpseclib package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 51.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12php-phpseclib2.0.42-1+deb12u2DEBIAN-CVE-2024-27354
Debian:13php-phpseclib2.0.47-1DEBIAN-CVE-2024-27354
Debian:14php-phpseclib2.0.47-1DEBIAN-CVE-2024-27354
Debian:12php-phpseclib33.0.19-1+deb12u3DEBIAN-CVE-2024-27354
Debian:13php-phpseclib33.0.36-1DEBIAN-CVE-2024-27354
Debian:14php-phpseclib33.0.36-1DEBIAN-CVE-2024-27354
Debian:12phpseclib1.0.20-1+deb12u2DEBIAN-CVE-2024-27354
Debian:13phpseclib1.0.23-1DEBIAN-CVE-2024-27354
Packagistphpseclib/phpseclib3.0.36GHSA-2528-jw5q-ww88
Packagistphpseclib/phpseclib2.0.47GHSA-2528-jw5q-ww88
Packagistphpseclib/phpseclib1.0.23GHSA-2528-jw5q-ww88
Ubuntu:22.04:LTSphpseclib1.0.20-1+deb12u3build0.22.04.1UBUNTU-CVE-2024-27354
Ubuntu:22.04:LTSphpseclib1.0.20-1+deb12u3build0.22.04.1USN-8769-1

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References