CVE-2025-48995: Signxml SignXML's Signature Verification With HMAC Vulnerability
MODERATECVE-2025-48995 is a MODERATE signxml's signature verification with hmac vulnerability (CWE-208: Observable Timing Discrepancy) affecting Signxml libraries in the PyPI ecosystem. The issue involves signxml's signature verification with hmac is vulnerable to a timing attack. Remediation is available by upgrading affected packages to version 4.0.4.
CVE-2025-48995 at a Glance
How to Fix CVE-2025-48995
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-48995, 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-208: Observable Timing Discrepancy, where two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not. 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-48995 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-48995?
Which Signxml versions are affected?
What version fixes CVE-2025-48995?
Is signxml affected?
What CWE is associated with CVE-2025-48995?
How can I check PyPI dependencies for CVE-2025-48995?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gmhf-gg8w-jw42",
"modified" : "2025-06-05T00:37:19Z",
"published" : "2025-06-05T00:37:19Z",
"aliases" : [ "CVE-2025-48995" ],
"summary" : "SignXML's signature verification with HMAC is vulnerable to a timing 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 timing attack. The verifier may leak information about the correct HMAC when comparing it with the user supplied hash, allowing users to reconstruct the correct HMAC for any data.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/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-gmhf-gg8w-jw42"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48995"
}, {
"type" : "WEB",
"url" : "https://github.com/XML-Security/signxml/commit/1b501faaacf34cf978a52dbc6915ec11e27611cd"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/XML-Security/signxml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-208" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-05T00:37:19Z",
"nvd_published_at" : "2025-06-02T17:15:41Z"
}
}