Critical severity9.8NVD Advisory· Published Sep 1, 2017· Updated May 13, 2026
CVE-2017-12873
CVE-2017-12873
Description
SimpleSAMLphp 1.7.0 through 1.14.10 might allow attackers to obtain sensitive information, gain unauthorized access, or have unspecified other impacts by leveraging incorrect persistent NameID generation when an Identity Provider (IdP) is misconfigured.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
simplesamlphp/simplesamlphpPackagist | >= 1.7.0, < 1.14.11 | 1.14.11 |
Affected products
4- cpe:2.3:a:simplesamlphp:simplesamlphp:*:*:*:*:*:*:*:*Range: >=1.7.0,<=1.14.10
cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
Patches
190dca8351584bugfix: Make sure a persistent NameID is not generated by default when the UserID is missing in the state array.
1 file changed · +1 −0
modules/saml/lib/IdP/SAML2.php+1 −0 modified@@ -623,6 +623,7 @@ private static function generateNameIdValue(SimpleSAML_Configuration $idpMetadat if ($attribute === NULL) { if (!isset($state['UserID'])) { SimpleSAML_Logger::error('Unable to generate NameID. Check the userid.attribute option.'); + return NULL; } $attributeValue = $state['UserID']; $idpEntityId = $idpMetadata->getString('entityid');
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- github.com/simplesamlphp/simplesamlphp/commit/90dca835158495b173808273e7df127303b8b953nvdIssue TrackingPatchThird Party AdvisoryWEB
- simplesamlphp.org/security/201612-04nvdPatchVendor AdvisoryWEB
- github.com/advisories/GHSA-gp2m-7cfp-h6gfghsaADVISORY
- lists.debian.org/debian-lts-announce/2017/12/msg00007.htmlnvdMailing ListThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2017-12873ghsaADVISORY
- www.debian.org/security/2018/dsa-4127nvdThird Party AdvisoryWEB
- github.com/FriendsOfPHP/security-advisories/blob/master/simplesamlphp/simplesamlphp/CVE-2017-12873.yamlghsaWEB
- github.com/simplesamlphp/simplesamlphp/security/advisories/GHSA-gp2m-7cfp-h6gfghsaWEB
News mentions
0No linked articles in our index yet.