SignXML's signature verification with HMAC is vulnerable to a timing attack
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-208.
Summary
SignXML is an implementation of the W3C XML Signature standard in Python. When verifying signatures with X509 certificate validation turned off and HMAC shared secret set (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), versions of SignXML prior to 4.0.4 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XML-Security | signxml | before 4.0.4 | 4.0.4 | Patch available | CNA |
| — | signxml (PyPI) | before 4.0.4 | 4.0.4 | Patch available | GHSA-gmhf-gg8w-jw42 |
- signxml VendorXML-Security Affected before 4.0.4 Fixed in 4.0.4 Patch available CNA
- signxml (PyPI) Vendor— Affected before 4.0.4 Fixed in 4.0.4 Patch available GHSA-gmhf-gg8w-jw42
Remediation
- Fix · CNA signxml (XML-Security) Fixed in 4.0.4
- Fix · GHSA-gmhf-gg8w-jw42 signxml (PyPI) Fixed in 4.0.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-48995
- 2026-10-03 Alias added: GHSA-gmhf-gg8w-jw42
References
More XML-Security vulnerabilities
- TI-2025-31122 SignXML's signature verification with HMAC is vulnerable to an algorithm confusion attack CVSS 4.0MEDIUM 6.9
Sources
- CVE-2025-48995 · CVE Program
- CVE-2025-48995 · NVD
- FIRST EPSS
- GHSA-gmhf-gg8w-jw42 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences