CVE-2017-1000246: Vulnerability in pysaml2 package

pysaml2 Updated 02 Oct 2025

Summary

16/07/2018
Yes i
Moderate
5.3

CVE-2017-1000246: Pysaml2 improperly initializes encryption vector. Affects pysaml2 versions < 4.6.0. Fixed in 4.6.0. How to fix ↓

Also tracked for

The same CVE-2017-1000246 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

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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The pysaml2 package is a Python library that provides support for SAML 2.0 in Python applications. It allows developers to implement SAML-based Single Sign-On (SSO) and Single Logout (SLO) functionality. The package is widely used in various Python projects and is available on the Python Package Index (PyPI). However, versions up to 4.5.0 of pysaml2 suffer from a moderate severity vulnerability.

Vulnerability Detail

The vulnerability in pysaml2 version 4.5.0 and earlier arises from the reuse of the initialization vector (IV) during encryption in the IDP server. This leads to weak encryption of data, potentially exposing sensitive information to attackers. The weak encryption can be exploited by an adversary to decrypt the encrypted data and gain unauthorized access to sensitive information. The vulnerability has a CVSS score of 5.3, indicating a moderate severity level.

How To Fix

Minimum fixed version

4.6.0

This is the first release that contains the fix.

pip install --upgrade "pysaml2==4.6.0"

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

Conclusion

The pysaml2 package up to version 4.5.0 is vulnerable to weak encryption due to the reuse of the initialization vector. To mitigate this vulnerability, it is crucial to upgrade to version 4.6.0 or later. For further assistance or support in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for pysaml2 →

Share this vulnerability

FAQ

The vulnerability allows an attacker to potentially decrypt sensitive data that is encrypted using weak encryption in the pysaml2 package.

At the moment, there is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of the pysaml2 package.

No, only versions up to 4.5.0 of the pysaml2 package are affected. Version 4.6.0 and later include a fix for the vulnerability.

You can use the Vulert Playground at Vulert 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 one.

Related vulnerabilities

Recent vulnerabilities recorded for pysaml2.

How To Fix

Minimum fixed version

4.6.0

This is the first release that contains the fix.

pip install --upgrade "pysaml2==4.6.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