CVE-2024-27354 Affecting phpseclib package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-PHPSECLIB-6300266
  • published28 Mar 2025
  • disclosed1 Mar 2024

Introduced: 1 Mar 2024

CVE-2024-27354  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:20.04 phpseclib.

NVD Description

Note: Versions mentioned in the description apply only to the upstream phpseclib package and not the phpseclib package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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.