Vulnerability · Published Nov 30, 2023 · Assigned by GitHub_M
CVE-2023-49087Validation of SignedInfo
Medium 6.8
In plain English
A medium-severity insufficient verification of data authenticity in xml-security from simplesamlphp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
xml-security is a library that implements XML signatures and encryption. Validation of an XML signature requires verification that the hash value of the related XML-document matches a specific DigestValue-value, but also that the cryptographic signature on the SignedInfo-tree (the one that contains the DigestValue) verifies and matches a trusted public key. If an attacker somehow (i.e. by exploiting a bug in PHP's canonicalization function) manages to manipulate the canonicalized version's DigestValue, it would be possible to forge the signature. This issue has been patched in version 1.6.12 and 5.0.0-alpha.13.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | simplesamlphp/saml2 | 5.0.0-alpha.13 | GHSA-ww7x-3gxh-qm6r |
| Packagist | simplesamlphp/xml-security | 1.6.12 | GHSA-ww7x-3gxh-qm6r |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| simplesamlphp | xml-security | = 1.6.11= 5.0.0-alpha.12 |
Weakness: CWE-345 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N