Skip to content

CVE-2023-49087 Validation of SignedInfo

HighCVSS 7.5 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
Technology
PHP

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.

Upgrade path

4 packages: 2 fixed.

PackageAffectedFixed inStatus
simplesamlphp/saml2(Packagist) = 5.0.0-alpha.12; >= 5.0.0-alpha.12, < 5.0.0-alpha.13 5.0.0-alpha.13 Fixed
simplesamlphp/xml-security(Packagist) = 1.6.11; = v1.6.11; >= 1.6.11, < 1.6.12 1.6.12 Fixed
simplesamlphp/saml2 = 5.0.0-alpha12 No fix listed Versions listed
simplesamlphp/xml-security = 1.6.11; = = 1.6.11; = = 5.0.0-alpha.12 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
simplesamlphp/xml-security(Packagist) >= 1.6.11, < 1.6.12 1.6.12
simplesamlphp/xml-security(Packagist) = 1.6.11 No fix listed
simplesamlphp/xml-security(Packagist) = v1.6.11 No fix listed
simplesamlphp/saml2(Packagist) >= 5.0.0-alpha.12, < 5.0.0-alpha.13 5.0.0-alpha.13
simplesamlphp/saml2(Packagist) = 5.0.0-alpha.12 No fix listed
simplesamlphp/xml-security = = 1.6.11 No fix listed
simplesamlphp/xml-security = = 5.0.0-alpha.12 No fix listed
simplesamlphp/saml2 = 5.0.0-alpha12 No fix listed
simplesamlphp/xml-security = 1.6.11 No fix listed

References