Sensitive Information Exposure in SimpleSAMLphp - CVE-2017-12870

simplesamlphp Updated 02 Oct 2025

Summary

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

CVE-2017-12870: SimpleSAMLphp 1.14.12 and earlier make it easier for man-in-the-middle attackers to obtain sensitive information by leveraging use of the aesEncrypt and aesDecrypt methods in the SimpleSAML/Utils/Crypto class to protect... Affects simplesamlphp across 2 version ranges.

< 1.14.15-1 < 353a77be570b29f42812a44245947b4fb030a5da

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 Penetration testing for web, API and mobile 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 Single Sign-On (SSO) and federated identity management. It is widely used for integrating various authentication mechanisms and supports multiple protocols. The package is designed to simplify the implementation of SSO solutions for web applications. However, versions 1.14.12 and earlier are vulnerable to a man-in-the-middle attack, which can compromise sensitive session identifiers.

Vulnerability Detail

The vulnerability arises from the use of the aesEncrypt and aesDecrypt methods in the SimpleSAML/Utils/Crypto class, which are employed to protect session identifiers in replies sent to non-HTTPS service providers. This design flaw allows attackers to intercept and decrypt sensitive information, potentially leading to unauthorized access to user sessions and sensitive data. The vulnerability is classified with a CVSS score of 5.9, indicating a moderate level of risk.

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

If upgrading is not immediately possible, consider configuring your service providers to use HTTPS. This will help mitigate the risk of man-in-the-middle attacks, although it is not a complete solution. Additionally, ensure that sensitive information is not transmitted over unencrypted channels.

Conclusion

CVE-2017-12870 poses a significant risk to users of SimpleSAMLphp versions 1.14.12 and earlier due to its susceptibility to man-in-the-middle attacks. It is crucial for users to upgrade to version 1.14.15-1 or later to ensure the security of their applications and protect sensitive information.

See every vulnerability recorded for simplesamlphp →

Share this vulnerability

FAQ

CVE-2017-12870 is a vulnerability in SimpleSAMLphp that allows man-in-the-middle attackers to obtain sensitive information by exploiting the encryption methods used for session identifiers.

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

If exploited, this vulnerability can lead to unauthorized access to user sessions, allowing attackers to impersonate users and access sensitive information.

Yes, configuring your service providers to use HTTPS can help mitigate the risk, but it is recommended to upgrade to the fixed version for complete protection.

The CVSS score of CVE-2017-12870 is 5.9, indicating a moderate level of risk associated with this vulnerability.

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