phpseclib CVE-2026-44167
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious ASN.1 file with oversized OID
-
DeliverySubmit to vulnerable endpoint
-
ExploitTrigger ASN1::decodeOID() parser
-
ExecutionExhaust server resources
-
ImpactDeny 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-3qpq-r242-jqj7
NVD
CVE.org
EPSS
VulDB
Exploit-DB