CVE-2021-21239

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-21239
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-21239.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-21239
Aliases
Related
Published
2021-01-21T15:15:14Z
Modified
2024-10-12T06:45:47.928105Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
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. Users of pysaml2 that use the default CryptoBackendXmlSec1 backend and need to verify signed SAML documents are impacted. PySAML2 does not ensure that a signed SAML document is correctly signed. The default CryptoBackendXmlSec1 backend is using the xmlsec1 binary to verify the signature of signed SAML documents, but by default xmlsec1 accepts any type of key found within the given document. xmlsec1 needs to be configured explicitly to only use only x509 certificates for the verification process of the SAML document signature. This is fixed in PySAML2 6.5.0.

References

Affected packages

Debian:11 / python-pysaml2

Package

Name
python-pysaml2
Purl
pkg:deb/debian/python-pysaml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.5.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / python-pysaml2

Package

Name
python-pysaml2
Purl
pkg:deb/debian/python-pysaml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.5.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / python-pysaml2

Package

Name
python-pysaml2
Purl
pkg:deb/debian/python-pysaml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.5.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/identitypython/pysaml2

Affected ranges

Type
GIT
Repo
https://github.com/identitypython/pysaml2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
GIT
Repo
https://github.com/rohe/pysaml2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1
0.2
0.4
0.4.1
0.4.2

1.*

1.0.0
1.0.1

2.*

2.0.0
2.1.0
2.3.0
2.4.0

3.*

3.0.0

4.*

4.0.0

v1.*

v1.0.3

v2.*

v2.2.0

v3.*

v3.0.2

v4.*

v4.1.0
v4.2.0
v4.3.0
v4.4.0
v4.5.0
v4.6.0
v4.6.1
v4.6.2
v4.6.3
v4.6.4
v4.6.5
v4.7.0
v4.8.0
v4.9.0

v5.*

v5.0.0
v5.1.0
v5.2.0
v5.3.0
v5.4.0

v6.*

v6.0.0
v6.1.0
v6.2.0
v6.3.0
v6.3.1
v6.4.0
v6.4.1