CVE-2024-27354

HIGH

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

Affects 2 products across 2 vendors.

CVSS 3.17.5
EPSS0.6%
Percentile48th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
CWE Weakness Definitions
CWE-400: Uncontrolled Resource Consumption (DoS)

Software does not properly limit resource usage, allowing an attacker to exhaust CPU, memory, disk, or bandwidth.

Related Attack Patterns (CAPEC)
CAPEC-147 XML Ping of the Death
via CWE-400
CAPEC-492 Regular Expression Exponential Blowup
via CWE-400
CAPEC-227 Sustained Client Engagement
via CWE-400

Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.

◆ AI Analysis — automated analysis, not human-reviewed

A vulnerability in phpseclib versions 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36 allows an attacker to cause a denial of service by constructing a malformed certificate with an extremely large prime, leading to excessive CPU consumption during the isPrime primality check.

BSID: BS-2024-GLOBAL-051609-H • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: HIGH

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2024-27354?
A vulnerability in phpseclib versions 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36 allows an attacker to cause a denial of service by constructing a malformed certificate with an extremely large prime, leading to excessive CPU consumption during the isPrime primality check.
What is the CVSS score for CVE-2024-27354?
CVE-2024-27354 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.6%.
Is CVE-2024-27354 actively exploited?
No confirmed active exploitation of CVE-2024-27354 as of 2026-09-25.
How do I remediate CVE-2024-27354?
Priority: HIGH.
What systems are affected by CVE-2024-27354?
CVE-2024-27354 affects Debian Debian Linux; Phpseclib Phpseclib.
Vulnerability Details
CVE IDCVE-2024-27354
BSIDBS-2024-GLOBAL-051609-H BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2024-03-01
Last Modified2026-06-17
ICS Relevance15%
Weakness (CWE)
SourceNVD
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.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

The attack vector involves an attacker crafting a specially designed certificate with an unusually large prime number. When this certificate is processed by the vulnerable versions of phpseclib, the isPrime function enters an infinite loop or consumes excessive CPU resources, resulting in a denial of service condition.

Exploitation Likelihood: MEDIUM

Affected Products
VendorProductAffected Versions
Debian Debian Linux 10.0
Phpseclib Phpseclib ≥ 1.0.0, < 1.0.23 ≥ 2.0.0, < 2.0.47 ≥ 3.0.0, < 3.0.36
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 958 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceHIGH
Enriched At2026-05-24
SHA-512 Audit Hash58d0a450eceaf0f2d1df9cda40a860b99604eb1f1a7213385eecf909b89eb0bd3aa64ce57e261a4dcb0e81f4ca988313b1b3d45e1a7b48062828320908889256
Related CVEs affecting Debian
CVE-2012-0444 10.0 Mozilla Firefox before 3.6.26 and 4.x through 9.0, Thunderbird before 3.1.18 ... CVE-2013-2863 10.0 Google Chrome before 27.0.1453.110 does not properly handle SSL sockets, whic... CVE-2015-2724 10.0 Multiple unspecified vulnerabilities in the browser engine in Mozilla Firefox... CVE-2017-16845 10.0 hw/input/ps2.c in Qemu does not validate 'rptr' and 'count' values during gue... CVE-1999-0698 10.0 Denial of service in IP protocol logger (ippl) on Red Hat and Debian Linux.
View all Debian CVEs →

ICS/OT Vulnerability Intelligence for Your Environment

BreachSpider tracks 384,000+ CVEs and matches them to your ICS/OT assets by exact version, with AI analysis, NERC CIP mapping, and vendor PSIRT contacts.

Create a free account →