CVE-2017-12871
MEDIUM 5.9CVSS 3.0SimpleSAMLphp Incorrect IV generation for encryption
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).
- Published
- 1 Sep 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-326
- Also known as
- GHSA-ww3w-592j-5qrw
- Sources
- NVDJSONOSV GHSA-ww3w-592j-5qrwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.0:*:*:*:*:*:*:* |
= 1.14.0 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.1:*:*:*:*:*:*:* |
= 1.14.1 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.2:*:*:*:*:*:*:* |
= 1.14.2 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.3:*:*:*:*:*:*:* |
= 1.14.3 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.4:*:*:*:*:*:*:* |
= 1.14.4 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.5:*:*:*:*:*:*:* |
= 1.14.5 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.6:*:*:*:*:*:*:* |
= 1.14.6 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.7:*:*:*:*:*:*:* |
= 1.14.7 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.8:*:*:*:*:*:*:* |
= 1.14.8 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.9:*:*:*:*:*:*:* |
= 1.14.9 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.10:*:*:*:*:*:*:* |
= 1.14.10 | |
| NVD | simplesamlphp | simplesamlphpcpe:2.3:a:simplesamlphp:simplesamlphp:1.14.11:*:*:*:*:*:*:* |
= 1.14.11 | |
| OSV | Packagist | simplesamlphp/simplesamlphp | >= 1.14.0, < 1.14.12 | 1.14.12 |
References
- https://github.com/simplesamlphp/simplesamlphp/commit/77df6a932d46daa35e364925eb73a175010dc904 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://simplesamlphp.org/security/201703-02 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-12871 · ADVISORY
- https://github.com/simplesamlphp/simplesamlphp/commit/ccf75981187aa88f7165abdb1b1965c0934acda0 · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/simplesamlphp/simplesamlphp/CVE-2017-12871.yaml · WEB
- https://github.com/simplesamlphp/simplesamlphp · PACKAGE
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 1 Sep 2017)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 May 2022)