{"id":"CVE-2025-48994","published":"2025-06-02T16:22:08Z","modified":"2025-06-02T16:30:51Z","title":"SignXML's signature verification with HMAC is vulnerable to an algorithm confusion attack","vendor":"XML-Security","product":"signxml","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00228,"percentile":0.13709,"provenance":"source"},"cwes":[{"id":"CWE-303","name":"Incorrect Implementation of Authentication Algorithm"}],"references":[{"url":"https://github.com/XML-Security/signxml/security/advisories/GHSA-6vx8-pcwv-xhf4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/XML-Security/signxml/commit/e3c0c2b82a3329a65d917830657649c98b8c7600","tags":["x_refsource_MISC"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":2.74},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"xml-security","affectedVersions":[{"vendor":"XML-Security","product":"signxml","versions":["< 4.0.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-06-02T16:30:36.729167Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"signxml","vulnerableRanges":["<4.0.4"],"patched":["4.0.4"],"from":["GHSA-6vx8-pcwv-xhf4","PYSEC-2026-1921"],"provenance":"source"}],"summary":{"text":"SignXML, a Python implementation of the W3C XML Signature standard by XML-Security, has a flaw in its signature verification when X509 certificate validation is disabled and an HMAC shared secret is supplied, which affects versions before 4.0.4. An attacker can exploit this, if the user has not explicitly restricted the expected signature algorithms, by supplying a signature made with a different asymmetric key and algorithm than the HMAC key, and no authentication or user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:25Z"},"euvd":{"id":"EUVD-2025-16666","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-xml-security-signxml-cve-2025-48994","children":[{"from":"CVE-2025-48994","to":"CVE-2025-48995","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["signxml/verifier.py"],"commits":["https://github.com/XML-Security/signxml/commit/e3c0c2b82a3329a65d917830657649c98b8c7600","https://github.com/XML-Security/signxml/commit/1b501faaacf34cf978a52dbc6915ec11e27611cd"],"basis":"shared function","functions":["verify"]}]}]}}