CVE-2023-49087 Validation of SignedInfo
Attackers can forge XML signatures by exploiting canonicalization bugs, bypassing integrity checks in the xml-security library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-49087?
CVE-2023-49087 is a medium-severity vulnerability in simplesamlphp xml-security, published on 30 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-345
Which versions are affected by CVE-2023-49087?
4 open source packages ship an affected version, including simplesamlphp/xml-security and simplesamlphp/saml2. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
simplesamlphp/xml-security Packagist | From 1.6.11 | 1.6.12 |
simplesamlphp/xml-security Packagist | From 1.6.11 | 1.6.12 |
simplesamlphp/saml2 Packagist | From 5.0.0-alpha.12 | 5.0.0-alpha.13 |
simplesamlphp/saml2 Packagist | From 5.0.0-alpha.12 | 5.0.0-alpha.13 |
Products include Simplesamlphp Saml2, Simplesamlphp Xml-Security.
How do I fix CVE-2023-49087?
Upgrade simplesamlphp/xml-security to 1.6.12 or later.
Is CVE-2023-49087 being exploited?
There is no known exploitation of CVE-2023-49087 in the wild and no public exploit code.
Other vulnerabilities in simplesamlphp xml-security
Sources
Also known as GHSA-ww7x-3gxh-qm6r.