{"id":"ALPINE-CVE-2021-21238","details":"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.","modified":"2026-11-03T06:32:38.174771975Z","published":"2021-01-21T15:15:14.110Z","upstream":["CVE-2021-21238"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-21238"}],"affected":[{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}},{"package":{"name":"py3-saml2","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/py3-saml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.5.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-21238.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"}]}