# CVE-2025-48994: SignXML's signature verification with HMAC is vulnerable to an algorithm confusion 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:N/VI:L/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-06-02T16:22:08.966Z
- Modified: 2026-07-07T17:57:09.762Z
- Also known as: GHSA-6vx8-pcwv-xhf4, PYSEC-2026-1921
- Weaknesses: CWE-303
- 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 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. Starting 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.

(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:N/VI:L/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:N/VI:L/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:N/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/XML-Security/signxml/security/advisories/GHSA-6vx8-pcwv-xhf4> (web)
- <https://github.com/XML-Security/signxml/commit/e3c0c2b82a3329a65d917830657649c98b8c7600> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48994> (advisory)
- <https://github.com/XML-Security/signxml> (package)
- <https://pypi.org/project/signxml> (package)
- <https://github.com/advisories/GHSA-6vx8-pcwv-xhf4> (advisory)

## Sources

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

---

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