Encryption Bypass Vulnerability in SimpleSAMLphp: CVE-2017-12871

simplesamlphp Updated 02 Oct 2025

Summary

01/09/2017
N/A
Yes i
Medium
5.9

CVE-2017-12871: The aesEncrypt method in lib/SimpleSAML/Utils/Crypto.php in SimpleSAMLphp 1.14.x through 1.14.11 makes it easier for context-dependent attackers to bypass the encryption protection mechanism by leveraging use of the firs... Affects simplesamlphp across 2 version ranges.

< 1.14.15-1 < 77df6a932d46daa35e364925eb73a175010dc904

Fixed in 1.14.15-1. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

SimpleSAMLphp is an open-source application written in PHP that facilitates the implementation of SAML (Security Assertion Markup Language) for web-based single sign-on (SSO). It allows users to authenticate across different domains while maintaining a secure session. The package is widely used in various web applications to manage user identities and access control. However, a significant vulnerability has been identified that compromises its encryption mechanism, potentially exposing sensitive data.

Vulnerability Detail

The aesEncrypt method in lib/SimpleSAML/Utils/Crypto.php in SimpleSAMLphp versions 1.14.x through 1.14.11 is vulnerable to an encryption bypass. This vulnerability arises from the use of the first 16 bytes of the secret key as the initialization vector (IV), which can be exploited by context-dependent attackers. This flaw allows attackers to bypass the encryption protection mechanism, leading to unauthorized access to sensitive information. The ramifications of this vulnerability can be severe, as it undermines the confidentiality of encrypted data.

How To Fix

Minimum fixed version

1.14.15-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade simplesamlphp

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

Workaround

As a temporary workaround, users can implement additional security measures such as using a different encryption method or enhancing the complexity of the secret key. However, upgrading to the fixed version is strongly recommended for long-term security.

Conclusion

CVE-2017-12871 represents a significant security risk for users of SimpleSAMLphp versions 1.14.x through 1.14.11. It is crucial for users to upgrade to version 1.14.15-1 or later to mitigate the risk of encryption bypass and protect sensitive data. Regular monitoring and security practices are essential to maintain the integrity of applications using this package.

See every vulnerability recorded for simplesamlphp →

Share this vulnerability

FAQ

CVE-2017-12871 is a vulnerability in SimpleSAMLphp that allows attackers to bypass encryption protections due to improper use of the initialization vector.

The vulnerability affects SimpleSAMLphp versions 1.14.x through 1.14.11.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of CVE-2017-12871 is 5.9, indicating a moderate level of severity.

If you cannot upgrade immediately, consider implementing additional security measures and monitor your application closely for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for simplesamlphp.

How To Fix

Minimum fixed version

1.14.15-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade simplesamlphp

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