Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain encrypted XML with GCM cipher
-
ExploitBrute-force authentication tag validation
-
ExecutionRecover GHASH key
-
ImpactDecrypt nodes or forge ciphertexts
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Integrity verification
|
| Exploitation Conditions | xmlseclibs version prior to 3.1.5 processing XML encrypted with aes-128-gcm, aes-192-gcm, or aes-256-gcm ciphers. No authentication required; remote unauthenticated exploitation possible against applications using vulnerable library versions. |
| Impact | Despite the high CVSS score (8.2), real-world risk appears moderate. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates remote exploitation with low complexity and no required privileges, which is concerning. However, no EPSS score is provided, suggesting limited observed exploitation activity. The vulnerability is not in CISA's KEV, indicating no known active exploitation. While the technical impact is severe (confidentiality breach and integrity compromise), exploitation requires targeting specific XML encryption implementations using affected GCM modes. The SSVC decision would likely prioritize this for systems actively using XML encryption with the affected library. |
| Exploit ScenarioDerived | An attacker identifies a web service using xmlseclibs for XML encryption with AES-GCM. By intercepting encrypted XML messages, they exploit the missing tag length validation to submit modified ciphertexts with truncated authentication tags. Through repeated attempts, they brute-force the reduced tag space to recover the GHASH key. Once obtained, the attacker can decrypt all messages encrypted with the same key and forge new valid ciphertexts, potentially injecting malicious XML content or stealing sensitive data from SAML assertions or SOAP messages. No public POC is referenced, but the attack is cryptographically straightforward for skilled adversaries. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 13, 2026
Critical cryptographic vulnerability in the xmlseclibs PHP library (versions before 3.1.5) that fails to validate authentication tag lengths in AES-GCM encrypted XML nodes. Attackers can exploit this remotely without authentication to brute-force encryption keys, decrypt sensitive data, and forge ciphertexts. While not currently in CISA's KEV catalog, the vulnerability has a high CVSS score of 8.2 and affects a widely-used XML security library.
RemediationAI
Upgrade to xmlseclibs version 3.1.5 or later immediately. The fix is available via commit 03062be78178cbb5e8f605cd255dc32a14981f92. For composer-based PHP projects, update the dependency to "robrichards/xmlseclibs": "^3.1.5". If immediate patching is not possible, consider temporarily disabling AES-GCM modes in favor of other encryption algorithms, though this may require application changes. Review the official release notes at https://github.com/robrichards/xmlseclibs/releases/tag/3.1.5.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The xmlseclibs library (CPE: cpe:2.3:a:robrichards:xmlseclibs:*:*:*:*:*:*:*:*) is a PHP implementation for XML Encryption and XML Signatures standards. The vulnerability stems from CWE-354 (Improper Validation of Integrity Check Value), specifically affecting AES Galois/Counter Mode (GCM) implementations for 128, 192, and 256-bit key sizes. GCM mode relies on authentication tags to ensure data integrity and authenticity, but the library fails to validate the tag length, allowing truncated tags that can be brute-forced to recover the GHASH authentication key used in GCM's polynomial MAC construction.
Know when Xmlseclibs gets its next vulnerability
- 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:H/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
xmlseclibs is a library written in PHP for working with XML Encryption and Signatures. Prior to 3.1.5, XML nodes encrypted with either aes-128-gcm, aes-192-gcm, or aes-256-gcm lack validation of the authentication tag length. An attacker can use this to brute-force an authentication tag, recover the GHASH key, and decrypt the encrypted nodes. It also allows to forge arbitrary ciphertexts without knowing the encryption key. This vulnerability is fixed in 3.1.5.
Executive ViewAI
CVE-2026-32313 is a high-severity cryptographic vulnerability in the widely-used xmlseclibs PHP library that allows unauthenticated attackers to decrypt sensitive XML data and forge encrypted content. Organizations using affected versions face immediate risk of data breach and potential compromise of digitally signed transactions, APIs, and sensitive communications.
Implement WAF rules to reject malformed AES-GCM authentication tags; restrict network access to XML processing endpoints via network segmentation and firewall policies; disable XML encryption features if not business-critical; monitor for brute-force attempts against encryption keys; enforce strict input validation on encrypted XML payloads; consider temporary reliance on alternative encryption mechanisms if available. No patch currently available—these mitigations are temporary until vendor releases version 3.1.5 or later.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Xmlseclibs
View allSignature validation in the PHP library xmlseclibs 3.1.3 and earlier can be bypassed because a libxml2 canonicalization
Rob Richards XmlSecLibs, all versions prior to v3.0.3, as used for example by SimpleSAMLphp, performed incorrect validat
EUVD-2026-12094
GHSA-4v26-v6cg-g6f9
NVD
CVE.org
EPSS
VulDB
Exploit-DB