CVE-2017-12874: Simplesamlphp/simplesamlphp module infocard SimpleSAMLphp InfoCard Module Incorrect Signature Vulnerability
HIGHCVE-2017-12874 is a HIGH (CVSS 7.5) simplesamlphp infocard module incorrect signature vulnerability (CWE-20: Improper Input Validation) affecting Simplesamlphp/simplesamlphp module infocard libraries in the Packagist ecosystem. The issue involves simplesamlphp infocard module incorrect signature verification. Remediation is available by upgrading affected packages to version 1.0.1.
CVE-2017-12874 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2017-12874
To remediate this vulnerability, upgrade all affected Simplesamlphp/simplesamlphp module infocard dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade simplesamlphp/simplesamlphp-module-infocard to 1.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for simplesamlphp/simplesamlphp-module-infocard
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-12874, inspect your project dependencies for Simplesamlphp/simplesamlphp module infocard:
inspect dependencies for simplesamlphp/simplesamlphp-module-infocard
Analyze the terminal output to locate any version of Simplesamlphp/simplesamlphp module infocard in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Simplesamlphp/simplesamlphp module infocard, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2017-12874 Affected Simplesamlphp/simplesamlphp module infocard Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
simplesamlphp/simplesamlphp-module-infocard
|
Packagist |
< 1.0.1
|
1.0.1
|
References
Frequently Asked Questions
What is CVE-2017-12874?
Which Simplesamlphp/simplesamlphp module infocard versions are affected?
What version fixes CVE-2017-12874?
Is simplesamlphp/simplesamlphp-module-infocard affected?
What is the CVSS score of CVE-2017-12874?
What CWE is associated with CVE-2017-12874?
How can I check Packagist dependencies for CVE-2017-12874?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fj28-869x-vv5g",
"modified" : "2024-04-25T21:00:25Z",
"published" : "2022-05-14T01:05:32Z",
"aliases" : [ "CVE-2017-12874" ],
"summary" : " SimpleSAMLphp InfoCard module Incorrect signature verification",
"details" : "The InfoCard module 1.0 for SimpleSAMLphp allows attackers to spoof XML messages by leveraging an incorrect check of return values in signature validation utilities.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "simplesamlphp/simplesamlphp-module-infocard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-12874"
}, {
"type" : "WEB",
"url" : "https://github.com/simplesamlphp/simplesamlphp-module-infocard/commit/63b84cc837ea62bf87f4bf4af29b4420f49311a9"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/simplesamlphp/simplesamlphp-module-infocard/CVE-2017-12874.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/simplesamlphp/simplesamlphp"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2017/12/msg00007.html"
}, {
"type" : "WEB",
"url" : "https://simplesamlphp.org/security/201612-03"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2018/dsa-4127"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T21:00:25Z",
"nvd_published_at" : "2017-09-01T21:29:00Z"
}
}