SimpleSAMLphp up to 1.14.11 Crypto.php aesEncrypt inadequate encryption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.

A vulnerability was found in SimpleSAMLphp up to 1.14.11. It has been rated as critical. This issue affects the function aesEncrypt in the library lib/SimpleSAML/Utils/Crypto.php. The manipulation with an unknown input leads to a inadequate encryption vulnerability. Using CWE to declare the problem leads to CWE-326. The product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

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 first 16 bytes of the secret key as the initialization vector (IV).

The bug was discovered 03/29/2016. The weakness was presented 09/01/2017 (GitHub Repository). The advisory is shared at The identification of this vulnerability is CVE-2017-12871 since 08/15/2017. The exploitation is known to be difficult. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details are known, but no exploit is available. MITRE ATT&CK project uses the attack technique T1600 for this issue.

The vulnerability was handled as a non-public zero-day exploit for at least 521 days. During that time the estimated underground price was around $0-$5k. By approaching the search of inurl:lib/SimpleSAML/Utils/Crypto.php it is possible to find vulnerable targets with Google Hacking.

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

See 106075, 106074, 106071 and 106070 for similar entries.





CPE 2.3info

CPE 2.2info


VulDB Meta Base Score: 5.7
VulDB Meta Temp Score: 5.5

VulDB Base Score: 5.6
VulDB Temp Score: 5.2
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.9
NVD Vector: 🔍



VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍


Class: Inadequate encryption
CWE: CWE-326 / CWE-310
ATT&CK: T1600

Local: No
Remote: Yes

Availability: 🔍
Status: Not defined
Google Hack: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍


Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍


Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔍



03/29/2016 🔍
08/15/2017 +504 days 🔍
09/01/2017 +17 days 🔍
09/01/2017 +0 days 🔍
09/02/2017 +1 days 🔍
12/27/2022 +1942 days 🔍


Advisory: 77df6a932d46daa35e364925eb73a175010dc904
Status: Not defined
Confirmation: 🔍

CVE: CVE-2017-12871 (🔍)
See also: 🔍


Created: 09/02/2017 09:47 AM
Updated: 12/27/2022 03:13 PM
Changes: 09/02/2017 09:47 AM (51), 11/12/2019 04:38 PM (8), 12/27/2022 03:13 PM (5)
Complete: 🔍


No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!