GHSA-5p3x-r448-pc62

Suggest an improvement
Source
https://github.com/advisories/GHSA-5p3x-r448-pc62
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-5p3x-r448-pc62/GHSA-5p3x-r448-pc62.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5p3x-r448-pc62
Aliases
Published
2021-01-21T14:12:18Z
Modified
2024-10-14T18:58:15.952095Z
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
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Improper Verification of Cryptographic Signature in PySAML2
Details

Impact

All users of pysaml2 that use the default CryptoBackendXmlSec1 backend and need to verify signed SAML documents are impacted. pysaml2 <= 6.4.1 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.

Patches

Users should upgrade to pysaml2 v6.5.0.

Workarounds

No workaround provided at this point.

References

This issue has been reported in the past at the xmlsec1 mailing list: https://www.aleksey.com/pipermail/xmlsec/2013/009717.html

Credits

  • Brian Wolff

For more information

If you have any questions or comments about this advisory: * Open an issue in pysaml2 * Email us at the incident-response address

References

Affected packages

PyPI / pysaml2

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.5.0

Affected versions

0.*

0.4.3

1.*

1.0.1
1.0.2
1.0.3
1.1.0

2.*

2.0.0
2.1.0
2.2.0
2.3.0
2.4.0

3.*

3.0.0
3.0.2

4.*

4.0.0
4.0.1
4.0.2
4.0.3
4.0.4
4.0.5rc1
4.0.5
4.1.0
4.2.0
4.3.0
4.4.0
4.5.0
4.6.0
4.6.1
4.6.2
4.6.3
4.6.4
4.6.5
4.7.0
4.8.0
4.9.0

5.*

5.0.0
5.1.0
5.2.0
5.3.0
5.4.0

6.*

6.0.0
6.1.0
6.2.0
6.3.0
6.3.1
6.4.0
6.4.1