CVE-2025-48994: Signxml SignXML's Signature Verification With HMAC Vulnerability
MODERATECVE-2025-48994 is a MODERATE signxml's signature verification with hmac vulnerability (CWE-303: Incorrect Implementation of Authentication Algorithm) affecting Signxml libraries in the PyPI ecosystem. The issue involves signxml's signature verification with hmac is vulnerable to an algorithm confusion attack. Remediation is available by upgrading affected packages to version 4.0.4.
CVE-2025-48994 at a Glance
How to Fix CVE-2025-48994
To remediate this vulnerability, upgrade all affected Signxml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install signxml>=4.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show signxml
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-48994, inspect your installed packages using pip:
pip show signxml
Analyze the terminal output to locate any version of Signxml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.4), your application is affected.
Note: The pip show signxml command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-303: Incorrect Implementation of Authentication Algorithm, where the requirements for the product dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect. In Signxml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-48994 Affected Signxml Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
signxml
|
PyPI |
< 4.0.4
|
4.0.4
|
References
Frequently Asked Questions
What is CVE-2025-48994?
Which Signxml versions are affected?
What version fixes CVE-2025-48994?
Is signxml affected?
What CWE is associated with CVE-2025-48994?
How can I check PyPI dependencies for CVE-2025-48994?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6vx8-pcwv-xhf4",
"modified" : "2025-06-05T00:38:20Z",
"published" : "2025-06-05T00:38:20Z",
"aliases" : [ "CVE-2025-48994" ],
"summary" : "SignXML's signature verification with HMAC is vulnerable to an algorithm confusion attack",
"details" : "When verifying signatures with X509 certificate validation turned off and HMAC shared secret set (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), prior versions of SignXML are vulnerable to a potential algorithm confusion attack. 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.\n\nStarting with signxml 4.0.4, specifying `hmac_key` causes the set of accepted signature algorithms to be restricted to HMAC only, if not already restricted by the user.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "signxml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/XML-Security/signxml/security/advisories/GHSA-6vx8-pcwv-xhf4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48994"
}, {
"type" : "WEB",
"url" : "https://github.com/XML-Security/signxml/commit/e3c0c2b82a3329a65d917830657649c98b8c7600"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/XML-Security/signxml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-303" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-05T00:38:20Z",
"nvd_published_at" : "2025-06-02T17:15:40Z"
}
}