# CVE-2025-48995: SignXML's signature verification with HMAC is vulnerable to a timing attack

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-06-02T16:23:27.706Z
- Modified: 2026-07-07T17:56:23.298Z
- Also known as: GHSA-gmhf-gg8w-jw42, PYSEC-2026-1922
- Weaknesses: CWE-208
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- XML-Security signxml: < 4.0.4
- signxml (PyPI): before 4.0.4

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/XML-Security/signxml/security/advisories/GHSA-gmhf-gg8w-jw42> (web)
- <https://github.com/XML-Security/signxml/commit/1b501faaacf34cf978a52dbc6915ec11e27611cd> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48995> (advisory)
- <https://github.com/XML-Security/signxml> (package)
- <https://pypi.org/project/signxml> (package)
- <https://github.com/advisories/GHSA-gmhf-gg8w-jw42> (advisory)

## Sources

- CVE List: [CVE-2025-48995](https://www.cve.org/CVERecord?id=CVE-2025-48995), CVE Terms of Use, modified 2025-06-02
- GitHub Advisory Database: [GHSA-gmhf-gg8w-jw42](https://github.com/advisories/GHSA-gmhf-gg8w-jw42), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-48995](https://nvd.nist.gov/vuln/detail/CVE-2025-48995), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1922](https://osv.dev/vulnerability/PYSEC-2026-1922), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-48995 · Whole record: https://cve.day/CVE-2025-48995.json · Rebuilt by cve.day 2026-11-25T22:58:58.664Z
