{"id":"CVE-2017-12871","aliases":["DEBIAN-CVE-2017-12871","EUVD-2022-5649","GHSA-ww3w-592j-5qrw","UBUNTU-CVE-2017-12871"],"status":"published","title":"SimpleSAMLphp Incorrect IV generation for encryption","description":"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).","severity":{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0049,"percentile":0.42421,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-326"],"published":"2017-09-01T21:00:00Z","modified":"2026-10-24T10:49:02Z","fixes":[{"ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp","fixed_in":["1.14.12"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"simplesamlphp","fixed_in":["1.14.15-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"simplesamlphp","fixed_in":["1.14.15-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.14.0"},{"fixed":"1.14.12"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"simplesamlphp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.14.15-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"simplesamlphp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.14.15-1"}]}],"versions":["1.10.0-1","1.11.0-1","1.12.0-1","1.12.0~rc1-1","1.12.0~rc2-1","1.13.0-1","1.13.1-1","1.13.1-2","1.13.2-1","1.14.0-1","1.14.1-1","1.14.10-1","1.14.11-1","1.14.2-1","1.14.2-2","1.14.3-1","1.14.4-1","1.14.5-1","1.14.6-1","1.14.7-1","1.14.8-1","1.14.9-1","1.6.0-1","1.6.1-1","1.6.2-1","1.6.3-1","1.6.3-2","1.6.3-3","1.7.0-1","1.7.0-2","1.8.0-1","1.8.1-1","1.8.2-1","1.9.0-1","1.9.0~rc1-1","1.9.0~rc2-1","1.9.1-1","1.9.2-1"]},{"source":"osv","ecosystem":"Packagist","package":"simplesamlphp/simplesamlphp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.14.0"},{"fixed":"1.14.12"}]}],"versions":["v1.14.0","v1.14.1","v1.14.10","v1.14.11","v1.14.2","v1.14.3","v1.14.4","v1.14.5","v1.14.6","v1.14.7","v1.14.8","v1.14.9"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"simplesamlphp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.2-1","1.14.0-1","1.14.0-1ubuntu2","1.14.0-1ubuntu2+esm1"]}],"products":[{"vendor":"simplesamlphp","product":"simplesamlphp"}],"references":[{"url":"https://simplesamlphp.org/security/201703-02","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/simplesamlphp/simplesamlphp/commit/77df6a932d46daa35e364925eb73a175010dc904","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12871","tags":["advisory"]},{"url":"https://github.com/simplesamlphp/simplesamlphp/commit/ccf75981187aa88f7165abdb1b1965c0934acda0","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/simplesamlphp/simplesamlphp/CVE-2017-12871.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-ww3w-592j-5qrw"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-12871","tags":["advisory"]},{"url":"https://github.com/simplesamlphp/simplesamlphp","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2017-12871","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-12871","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-12871","description":"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).","status":"published","published":"2017-09-01T21:00:00Z","modified":"2024-08-05T18:51:06.864Z","updated_at":"2026-11-02T14:33:17.264801Z"}],"euvd":[{"id":"EUVD-2022-5649","description":"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).","status":"published","published":"2017-09-01T21:00:00Z","modified":"2024-08-05T18:51:06Z","updated_at":"2026-11-03T02:23:20.155596Z"}],"ghsa":[{"id":"GHSA-ww3w-592j-5qrw","title":"SimpleSAMLphp Incorrect IV generation for encryption","description":"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).","status":"published","published":"2022-05-17T01:17:12Z","modified":"2024-04-25T21:00:13Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-326"],"updated_at":"2026-11-02T14:37:46.667202Z"}],"nvd":[{"id":"CVE-2017-12871","description":"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).","status":"published","published":"2017-09-01T21:29:00.53Z","modified":"2026-06-17T01:04:03.76Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-326"],"updated_at":"2026-11-02T14:03:58.85945Z"}],"osv":[{"id":"CVE-2017-12871","description":"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).","status":"published","published":"2017-09-01T21:29:00.53Z","modified":"2026-10-24T10:49:02.900679574Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:04.159616Z"},{"id":"DEBIAN-CVE-2017-12871","description":"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).","status":"published","published":"2017-09-01T21:29:00.53Z","modified":"2026-09-01T20:03:42.514773305Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:28.50097Z"},{"id":"GHSA-ww3w-592j-5qrw","title":"SimpleSAMLphp Incorrect IV generation for encryption","description":"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).","status":"published","published":"2022-05-17T01:17:12Z","modified":"2024-04-25T21:26:44.794344Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-326"],"updated_at":"2026-11-02T15:46:59.131095Z"},{"id":"UBUNTU-CVE-2017-12871","description":"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).","status":"published","published":"2017-09-01T21:29:00Z","modified":"2026-09-15T20:16:38.414593587Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:14.122973Z"}]}}
