CVE-2026-32313 xmlseclibs is Missing AES-GCM Authentication Tag Validation on Encrypted Nodes Allows for Unauthorized Decryption
Attackers can decrypt encrypted XML nodes or forge ciphertexts due to missing authentication tag validation in xmlseclibs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-32313?
CVE-2026-32313 is a high-severity vulnerability in robrichards xmlseclibs, published on 13 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-354
Which versions are affected by CVE-2026-32313?
2 open source packages ship an affected version, including robrichards/xmlseclibs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
robrichards/xmlseclibs Packagist | All versions | 3.1.5 |
robrichards/xmlseclibs Packagist | All versions | 3.1.5 |
Products include Xmlseclibs Project Xmlseclibs.
How do I fix CVE-2026-32313?
Upgrade robrichards/xmlseclibs to 3.1.5 or later.
Is CVE-2026-32313 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32313 exists.
Other vulnerabilities in robrichards xmlseclibs
Sources
Also known as GHSA-4v26-v6cg-g6f9.