CVE-2026-32313
8.2RobRichards · xmlseclibs
The xmlseclibs library fails to validate authentication tag lengths for certain AES-GCM encryption modes, allowing attackers to recover keys and forge ciphertexts.
Executive summary
A critical cryptographic vulnerability in the xmlseclibs library, version 3.1.4 and earlier, allows unauthenticated attackers to decrypt sensitive data and forge encrypted XML nodes.
Vulnerability
This flaw involves improper validation of integrity check values (CWE-354) within the XML encryption process. An unauthenticated attacker can leverage this weakness to brute-force authentication tags, recover GHASH keys, and perform arbitrary ciphertext forgery.
Business impact
The ability to decrypt sensitive XML-encrypted data and forge valid ciphertexts poses a severe risk to data confidentiality and integrity. Given the CVSS score of 8.2, this vulnerability could allow unauthorized parties to bypass security controls on systems relying on this library, potentially resulting in unauthorized access to sensitive information or the injection of malicious commands.
Remediation
Immediate Action: Update the xmlseclibs library to version 3.1.5 or later via your package manager, such as Composer, to incorporate the necessary authentication tag validation.
Proactive Monitoring: Review application access logs for unusual patterns involving XML encryption failures or unexpected decryption errors that may indicate exploitation attempts.
Compensating Controls: Implement strict network access controls to limit exposure of endpoints that process XML encryption and signatures to only known, trusted sources.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
Given the high CVSS severity and the existence of a proof-of-concept, organizations using the xmlseclibs library must prioritize this update. Failing to patch this vulnerability leaves critical cryptographic implementations exposed to decryption and forgery attacks. Immediate transition to version 3.1.5 is the only effective method to remediate this security risk.