CVE-2021-21238

NameCVE-2021-21238
DescriptionPySAML2 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs980773

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-pysaml2 (PTS)jessie, jessie (lts)2.0.0-1+deb8u4vulnerable
stretch (security), stretch (lts), stretch3.0.0-5+deb9u2vulnerable
buster (security), buster, buster (lts)4.5.0-4+deb10u1vulnerable
bullseye6.5.1-1fixed
bookworm7.0.1-2fixed
trixie7.5.0-2fixed
sid7.5.0-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-pysaml2source(unstable)6.5.1-1980773

Notes

[buster] - python-pysaml2 <no-dsa> (Minor issue)
[stretch] - python-pysaml2 <ignored> (python3-xmlschema not available in stretch for fix)
https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-f4g9-h89h-jgv9
https://github.com/IdentityPython/pysaml2/commit/3b707723dcf1bf60677b424aac398c0c3557641d
[jessie] - python-pysaml2 <ignored> (python-xmlschema not available)

Search for package or bug name: Reporting problems