Live threats

All CVEs / Phpseclib

CVE-2024-27354Phpseclib

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.8%
probability of exploitation in 30 days · percentile 52
Auth required
No
Published
Mar 1, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpseclib.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpseclib/phpseclib ≥ 0.1.1 < 1.0.23 1.0.23 composer require "phpseclib/phpseclib:^1.0.23"
Packagist phpseclib/phpseclib ≥ 2.0.0 < 2.0.47 2.0.47 composer require "phpseclib/phpseclib:^2.0.47"
Packagist phpseclib/phpseclib ≥ 3.0.0 < 3.0.36 3.0.36 composer require "phpseclib/phpseclib:^3.0.36"

Per OSV / GitHub Advisories (GHSA-2528-jw5q-ww88). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
phpseclibphpseclib≥ 1.0.0 < 1.0.23
phpseclibphpseclib≥ 2.0.0 < 2.0.47
phpseclibphpseclib≥ 3.0.0 < 3.0.36
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.