Skip to main content

Xmlseclibs CVE-2026-32313

| EUVDEUVD-2026-12094 HIGH
Improper Validation of Integrity Check Value (CWE-354)
2026-03-13 GitHub_M GHSA-4v26-v6cg-g6f9
8.2
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Obtain encrypted XML with GCM cipher
  2. Exploit
    Brute-force authentication tag validation
  3. Execution
    Recover GHASH key
  4. Impact
    Decrypt 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.

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 – 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

xmlseclibs < 3.1.5

Affected Packages

composer robrichards/xmlseclibs fix: 3.1.5
euvd xmlseclibs fix: 3.1.5

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

GitHub Advisory PRIMARY 8.2 HIGH
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

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

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 13, 2026 - 19:50 nvd
HIGH 8.2

DescriptionGitHub 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 98% exploitable
Data Quality
6 sources
Confidence: High

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

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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