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.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.2%top 91.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Packagistsimplesamlphp/saml25.0.0-alpha.13GHSA-ww7x-3gxh-qm6r
Packagistsimplesamlphp/xml-security1.6.12GHSA-ww7x-3gxh-qm6r

Affected products (as reported)

VendorProductVersions
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

References