Skip to main content

phpseclib CVE-2026-44167

HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-05-05 https://github.com/phpseclib/phpseclib GHSA-3qpq-r242-jqj7
7.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious ASN.1 file with oversized OID
  2. Delivery
    Submit to vulnerable endpoint
  3. Exploit
    Trigger ASN1::decodeOID() parser
  4. Execution
    Exhaust server resources
  5. Impact
    Deny service to legitimate users

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target application to use vulnerable phpseclib versions (1.0.11-1.0.28, 2.0.0-2.0.53, or 3.0.0-3.0.51) and accept untrusted ASN.1-encoded input from external sources for processing through phpseclib parsing functions. Specifically, the application must invoke ASN.1 decoding on user-supplied X.509 certificates, PKCS8 keys, or similar cryptographic structures. Applications that only process internally generated or cryptographically verified certificates prior to parsing have reduced exposure. Default phpseclib configurations are vulnerable-no non-default settings required. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms no authentication, user interaction, or complex configuration is needed, making this exploitable against any internet-facing endpoint that accepts cryptographic file uploads or API submissions containing ASN.1 data.

Impact

Real-world risk is moderate to high for internet-facing PHP applications that process user-supplied cryptographic files. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms this is remotely exploitable without authentication or user interaction, making it trivially automatable. The High availability impact (A:H) with no confidentiality or integrity impact correctly characterizes this as a pure DoS vulnerability. However, exploitation requires the application to accept and process untrusted ASN.1 data-applications that only handle internally generated or pre-validated certificates have reduced exposure. The fact that this bypasses a previous CVE fix (CVE-2024-27355) suggests sophisticated understanding of ASN.1 amplification techniques, though no public exploit identified at time of analysis. EPSS data not provided, but the combination of low attack complexity, no authentication requirement, and availability of patches across three major version branches indicates this should be prioritized for patching in exposed systems. The absence of KEV listing and public POC suggests exploitation is not yet widespread, but the attack surface (any file upload accepting certificates/keys) is broad in modern web applications.

Exploit ScenarioDerived

An attacker crafts a malicious X.509 certificate or PKCS8 key file containing an oversized Object Identifier designed to trigger resource exhaustion when decoded. They submit this file to a PHP web application that uses phpseclib for certificate validation, key import, or PKI operations-common scenarios include user certificate upload portals, API authentication systems, or email encryption gateways. When the application calls phpseclib's ASN.1 decoding functions, the malicious OID triggers excessive memory or CPU consumption, causing the PHP process to hang or crash, resulting in denial of service for legitimate users. No public exploit identified at time of analysis, but the attack technique (ASN.1 amplification) is well-documented in cryptographic security research.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Denial of service attacks against PHP applications using phpseclib can be triggered by providing maliciously crafted ASN.1 encoded files containing oversized Object Identifiers. The vulnerability bypasses a previous CVE-2024-27355 mitigation, allowing OID amplification attacks that exhaust server resources when processing untrusted X.509 certificates, PKCS8 keys, or other ASN.1 structures. Vendor-released patches are available across all affected major versions (1.x, 2.x, 3.x). CVSS 7.5 indicates network-exploitable, unauthenticated denial of service with no public exploit identified at time of analysis.

RemediationAI

Upgrade phpseclib immediately to the patched versions: 1.0.29 for 1.x branch, 2.0.54 for 2.x branch, or 3.0.52 for 3.x branch. The fix is available via Composer package manager and documented in commit d53d2021bcb9f6a04d5d44ec99e6bbef219a71bc which reduces the OID size limit from 4096 to 128 bytes. No workarounds are available according to the vendor advisory. If immediate patching is not feasible, implement strict input validation to reject ASN.1 files before they reach phpseclib parsing functions-specifically, enforce maximum file size limits (under 10KB for typical certificates) and implement request rate limiting on endpoints accepting cryptographic file uploads. Note that file size limiting alone may not prevent the attack if the malicious OID is embedded in an otherwise small file, so this is a compensating control only and patching remains the primary remediation. Verify patch application by confirming the ASN1.php file contains the 128-byte limit check. Advisory URL: https://github.com/phpseclib/phpseclib/security/advisories/GHSA-3qpq-r242-jqj7.

Affected Packages

composer phpseclib/phpseclib fix: 1.0.29, 2.0.54, 3.0.52

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

phpseclib is a pure PHP implementation of cryptographic protocols and file formats, widely used in PHP applications for processing X.509 certificates, SSH keys, and other ASN.1-encoded structures. This vulnerability (CWE-400: Uncontrolled Resource Consumption) resides in the ASN1::decodeOID() function which decodes Object Identifiers in ASN.1 DER/BER encoded data. The issue is a mitigation bypass of CVE-2024-27355-the original fix limited OID size to 4096 bytes, but attackers can still trigger resource exhaustion through amplification attacks at that threshold. The patch further reduces the limit to 128 bytes, preventing the amplification vector while maintaining compatibility with legitimate OID usage. This affects all applications using phpseclib to parse untrusted cryptographic material, particularly web applications handling certificate uploads, API key validation, or PKI operations.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionGitHub Advisory

Impact

Anyone loading untrusted ASN1 files (eg. X509 certificates, RSA PKCS8 private or public keys, etc)

Patches

https://github.com/phpseclib/phpseclib/commit/d53d2021bcb9f6a04d5d44ec99e6bbef219a71bc

Workarounds

No.

References

https://github.com/phpseclib/phpseclib/commit/d53d2021bcb9f6a04d5d44ec99e6bbef219a71bc

Executive ViewAI

Why It Matters

CVE-2026-44167 is a denial-of-service vulnerability in phpseclib that allows unauthenticated attackers to crash PHP applications by submitting maliciously crafted X.509 certificates or cryptographic keys with oversized object identifiers. Organizations using phpseclib for certificate validation, TLS processing, or key management face service unavailability risks, particularly if user-supplied certificate data is processed without proper input validation upstream.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: (1) Restrict certificate/key upload functionality to authenticated users only; (2) Implement request rate limiting on ASN.1 parsing endpoints; (3) Deploy Web Application Firewall rules to detect and reject oversized OID structures in X.509 submissions; (4) Monitor for CPU/memory spikes during certificate processing operations.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)GitHub Advisory

pkg:composer/phpseclib_phpseclib
pkg:composer/phpseclib_phpseclib
pkg:composer/phpseclib_phpseclib

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy