Security Update for python-pysaml2

python-pysaml2 Updated 02 Oct 2025

Summary

26/02/2021
N/A
Yes i
Unrated
Not published

DLA-2577-1: python-pysaml2 - security update. Affects python-pysaml2 versions < 3.0.0-5+deb9u2. Fixed in 3.0.0-5+deb9u2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

python-pysaml2 is a pure python implementation of the SAML Version 2 Standard. It is used for implementing SAML-based Single Sign-On (SSO) authentication in Python applications. This package provides functionality for generating and consuming SAML assertions, handling SAML protocols, and managing SAML metadata. However, python-pysaml2 is vulnerable to two security issues.

Vulnerability Detail

The first vulnerability, identified as CVE-2017-1000433, allows attackers to log in as any user without knowing their password. This occurs when python-pysaml2 is run with Python optimizations enabled, as it accepts any password. The second vulnerability, known as CVE-2021-21239, affects users of pysaml2 that use the default CryptoBackendXmlSec1 backend to verify signed SAML documents. PySAML2 does not ensure that a signed SAML document is correctly signed, as the default xmlsec1 binary used by CryptoBackendXmlSec1 accepts any type of key found within the document. This can lead to the acceptance of invalid signatures.

How To Fix

Minimum fixed version

3.0.0-5+deb9u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-pysaml2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

In conclusion, python-pysaml2 is vulnerable to two security issues that can allow unauthorized access and acceptance of invalid signatures. It is crucial to upgrade to version 3.0.0-5+deb9u2 or later to mitigate these vulnerabilities. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for python-pysaml2 →

Share this vulnerability

FAQ

python-pysaml2 is a pure python implementation of the SAML Version 2 Standard. It is used for implementing SAML-based Single Sign-On (SSO) authentication in Python applications.

CVE-2017-1000433 is a vulnerability in python-pysaml2 that allows attackers to log in as any user without knowing their password when the package is run with Python optimizations enabled.

CVE-2021-21239 is a vulnerability in python-pysaml2 that affects users of the default CryptoBackendXmlSec1 backend. It allows the acceptance of invalid signatures in signed SAML documents.

To fix these vulnerabilities, you should upgrade your python-pysaml2 package to version 3.0.0-5+deb9u2 or later.

No specific workaround is mentioned for these vulnerabilities. It is recommended to upgrade to the fixed version of the package.

Related vulnerabilities

Recent vulnerabilities recorded for python-pysaml2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.0.0-5+deb9u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-pysaml2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback