CVE-2025-48994
Python vulnerability analysis and mitigation

Overview

SignXML, an implementation of the W3C XML Signature standard in Python, disclosed a vulnerability (CVE-2025-48994) affecting versions prior to 4.0.4. The vulnerability was discovered when verifying signatures with X509 certificate validation turned off and HMAC shared secret set. The issue was reported on June 2, 2025, and has been assigned a CVSS v4.0 score of 6.9 (MEDIUM) (GitHub Advisory).

Technical details

The vulnerability occurs when using the signxml.XMLVerifier.verify(requirex509=False, hmackey=...) configuration. Unless the user explicitly limits the expected signature algorithms using the signxml.XMLVerifier.verify(expect_config=...) setting, an attacker may supply a signature unexpectedly signed with a key other than the provided HMAC key, using a different asymmetric key signature algorithm. The issue has been classified as CWE-303 (Incorrect Implementation of Authentication Algorithm) (NVD).

Impact

The vulnerability could allow an attacker to bypass the intended HMAC authentication mechanism by using a different signature algorithm than expected. This could potentially lead to unauthorized access or manipulation of signed XML documents, compromising the integrity and authenticity of the verification process (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in SignXML version 4.0.4. In the fixed version, specifying hmackey automatically restricts the set of accepted signature algorithms to HMAC only, if not already restricted by the user. Users should upgrade to version 4.0.4 or later to address this vulnerability. Additionally, users can mitigate the risk by explicitly restricting the allowed signature algorithms using the expectconfig parameter (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management