{"id":"CVE-2025-48994","aliases":["CVE-2025-48994","GHSA-6vx8-pcwv-xhf4","PYSEC-2026-1921"],"related":[],"kind":"vulnerability","state":"published","title":"SignXML's signature verification with HMAC is vulnerable to an algorithm confusion attack","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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 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.\n\nStarting 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"SignXML es una implementación del estándar de firma XML del W3C en Python. Al verificar firmas con la validación de certificado X509 desactivada y el secreto compartido HMAC establecido (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), las versiones de SignXML anteriores a la 4.0.4 son vulnerables a un posible ataque de confusión de algoritmos. A menos que el usuario limite explícitamente los algoritmos de firma esperados mediante la opción `signxml.XMLVerifier.verify(expect_config=...)`, un atacante podría proporcionar una firma firmada inesperadamente con una clave distinta a la clave HMAC proporcionada, utilizando un algoritmo de firma diferente (clave asimétrica). A partir de SignXML 4.0.4, especificar `hmac_key` limita el conjunto de algoritmos de firma aceptados a HMAC únicamente, si el usuario no lo ha hecho ya.","source":"nvd"}],"published":"2025-06-02T16:22:08.966Z","modified":"2026-07-07T17:57:09.762Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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"}],"cwes":["CWE-303"],"affected":[{"ranges":[{"version":"< 4.0.4","status":"affected"}],"vendor":"XML-Security","product":"signxml","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.4"}],"ecosystem":"PyPI","package":"signxml","purl":"pkg:pypi/signxml","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.4"}],"ecosystem":"PyPI","package":"signxml","purl":"pkg:pypi/signxml","source":"pysec"}],"references":[{"url":"https://github.com/XML-Security/signxml/security/advisories/GHSA-6vx8-pcwv-xhf4","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/XML-Security/signxml/commit/e3c0c2b82a3329a65d917830657649c98b8c7600","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48994","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/XML-Security/signxml","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/signxml","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-6vx8-pcwv-xhf4","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-06-02T16:30:36.729Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48994","url":"https://www.cve.org/CVERecord?id=CVE-2025-48994","licence":"CVE Terms of Use","modified":"2025-06-02T16:30:51.717Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6vx8-pcwv-xhf4","url":"https://github.com/advisories/GHSA-6vx8-pcwv-xhf4","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:09.762Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48994","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48994","licence":"Public domain","modified":"2026-06-17T09:30:38.180Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1921","url":"https://osv.dev/vulnerability/PYSEC-2026-1921","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:12.634Z"}],"updatedAt":"2026-11-25T22:58:58.663Z","epss":{"score":0.00228,"percentile":0.14579,"date":"2026-12-01T12:00:22.000Z"}}