CVE-2017-1000433: Vulnerability in pysaml2 Package

pysaml2 Updated 02 Oct 2025

Summary

02/01/2018
Yes i
Critical
8.1

CVE-2017-1000433: pysaml2 version 4.4.0 and older accept any password when run with python optimizations enabled. Affects pysaml2 versions < 4.5.0. Fixed in 4.5.0. How to fix ↓

Also tracked for

The same CVE-2017-1000433 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

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

The pysaml2 package is a Python implementation of the SAML 2.0 protocol. It provides functionality for creating and consuming SAML assertions, as well as handling SAML-based authentication and authorization. The package is widely used in various Python applications that require SAML integration.

Vulnerability Detail

The vulnerability (CVE-2017-1000433) affects pysaml2 versions 4.4.0 and older when run with Python optimizations enabled. It allows attackers to log in as any user without knowing their password. This is due to a flaw in the password validation mechanism, which fails to properly verify the user's credentials. As a result, an attacker can exploit this vulnerability to gain unauthorized access to the system and potentially perform malicious actions on behalf of other users.

How To Fix

Minimum fixed version

4.5.0

This is the first release that contains the fix.

pip install --upgrade "pysaml2==4.5.0"

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading to a secure version of pysaml2.

Conclusion

The vulnerability in pysaml2 versions 4.4.0 and older poses a significant risk of unauthorized access to affected systems. To ensure the security of your application, it is crucial to upgrade to pysaml2 version 4.5.0 or newer. This fix addresses the flaw in the password validation mechanism and prevents attackers from logging in without proper credentials. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for pysaml2 →

Share this vulnerability

FAQ

The vulnerability allows attackers to log in as any user without knowing their password, potentially leading to unauthorized access and misuse of sensitive information.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it for any open-source vulnerabilities, including this specific issue.

While there may not be a specific known exploit publicly available, the vulnerability can be exploited by attackers who are aware of its existence and can craft malicious requests to gain unauthorized access.

There have been no specific reported incidents related to this vulnerability. However, it is crucial to apply the recommended fix to mitigate the risk of potential unauthorized access.

No, the recommended fix for this vulnerability is to upgrade to a secure version of pysaml2. It is not possible to mitigate the risk without applying the fix.

Related vulnerabilities

Recent vulnerabilities recorded for 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

4.5.0

This is the first release that contains the fix.

pip install --upgrade "pysaml2==4.5.0"

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