{"id":"CVE-2021-21238","published":"2021-01-21T14:15:27Z","modified":"2024-08-03T18:09:15Z","title":"SAML XML Signature wrapping","vendor":"IdentityPython","product":"pysaml2","tier":"tail","description":{"text":"PySAML2 is a pure python implementation of SAML Version 2 Standard. PySAML2 before 6.5.0 has an improper verification of cryptographic signature vulnerability. All users of pysaml2 that need to validate signed SAML documents are impacted. The vulnerability is a variant of XML Signature wrapping because it did not validate the SAML document against an XML schema. This allowed invalid XML documents to be processed and such a document can trick pysaml2 with a wrapped signature. This is fixed in PySAML2 6.5.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01096,"percentile":0.65111,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://pypi.org/project/pysaml2","tags":["x_refsource_MISC"]},{"url":"https://github.com/IdentityPython/pysaml2/releases/tag/v6.5.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-f4g9-h89h-jgv9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/IdentityPython/pysaml2/commit/1d8fd268f5bf887480a403a7a5ef8f048157cc14","tags":["x_refsource_MISC"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":13.02},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"identitypython","affectedVersions":[{"vendor":"IdentityPython","product":"pysaml2","versions":["< 6.5.0"]}],"affected":[{"ecosystem":"PyPI","package":"pysaml2","vulnerableRanges":["<6.5.0"],"patched":["6.5.0"],"from":["GHSA-f4g9-h89h-jgv9","PYSEC-2021-48"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-0210","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-identitypython-pysaml2-cve-2020-5390","parents":[{"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"]}]}],"children":[{"from":"CVE-2021-21238","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/1d8fd268f5bf887480a403a7a5ef8f048157cc14","https://github.com/IdentityPython/pysaml2/commit/46578df0695269a16f1c94171f1429873f90ed99"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.62,"basis":"same product + CWE + description similarity"}]}]}}