CVE-2023-49087

Medium

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.

SeverityMedium
CVSS6.8
Exploit probability—
ProductSimplesamlphp Xml-security
PublishedNov 30, 2023
First seenNov 30, 2023
Weakness typeCWE-345CWE-345

How to fix

Update
  • simplesamlphp/xml-security1.6.12 or later
  • simplesamlphp/saml25.0.0-alpha.13 or later

Affected products

ProductAffected versionsFixed in
simplesamlphp xml-security1.6.11—
simplesamlphp saml25.0.0—
simplesamlphp/xml-securityPackagist1.6.11 ≤ v < 1.6.121.6.12
simplesamlphp/saml2Packagist5.0.0-alpha.12 ≤ v < 5.0.0-alpha.135.0.0-alpha.13

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.