{"id":"CVE-2020-5390","published":"2020-01-13T18:11:37Z","modified":"2024-08-04T08:30:23Z","title":"PySAML2 before 5.0.0 does not check that the signature in a SAML document is enveloped and thus signature wrapping is…","vendor":null,"product":null,"tier":"tail","description":{"text":"PySAML2 before 5.0.0 does not check that the signature in a SAML document is enveloped and thus signature wrapping is effective, i.e., it is affected by XML Signature Wrapping (XSW). The signature information and the node/object that is signed can be in different places and thus the signature verification will succeed, but the wrong data will be used. This specifically affects the verification of assertion that have been signed.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01234,"percentile":0.69741,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/IdentityPython/pysaml2/commit/5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/IdentityPython/pysaml2/commit/f27c7e7a7010f83380566a219fd6a290a00f2b6e","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/IdentityPython/pysaml2/releases/tag/v5.0.0","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/IdentityPython/pysaml2/releases","tags":["x_refsource_CONFIRM"]},{"url":"https://pypi.org/project/pysaml2/5.0.0/","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/4245-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://www.debian.org/security/2020/dsa-4630","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00025.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":13.95}]},"affected":[{"ecosystem":"PyPI","package":"pysaml2","vulnerableRanges":["<5.0.0"],"patched":["5.0.0"],"from":["GHSA-qf7v-8hj3-4xw7","PYSEC-2020-94"],"provenance":"source"}],"summary":{"text":"PySAML2 versions before 5.0.0 fail to verify that a SAML document's signature is enveloped, which makes the library vulnerable to XML Signature Wrapping (XSW). This flaw specifically affects the verification of signed assertions, where the signature and the signed node can sit in different parts of the document, so verification succeeds against the wrong data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:57Z"},"euvd":{"id":"EUVD-2020-0157","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-identitypython-pysaml2-cve-2020-5390","children":[{"from":"CVE-2020-5390","to":"CVE-2021-21238","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml2/sigver.py"],"commits":["https://github.com/IdentityPython/pysaml2/commit/5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25","https://github.com/IdentityPython/pysaml2/commit/f27c7e7a7010f83380566a219fd6a290a00f2b6e","https://github.com/IdentityPython/pysaml2/commit/1d8fd268f5bf887480a403a7a5ef8f048157cc14"],"basis":"shared function","functions":["_check_signature"]}]},{"from":"CVE-2020-5390","to":"CVE-2021-21239","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml2/sigver.py"],"commits":["https://github.com/IdentityPython/pysaml2/commit/5e9d5acbcd8ae45c4e736ac521fd2df5b1c62e25","https://github.com/IdentityPython/pysaml2/commit/f27c7e7a7010f83380566a219fd6a290a00f2b6e","https://github.com/IdentityPython/pysaml2/commit/46578df0695269a16f1c94171f1429873f90ed99"],"basis":"rarely changed file"}]}]}}