CVE-2023-49087
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: Insufficient Verification of Data Authenticity
Timeline
- 2023-11-28GitHub advisory published (GHSA-ww7x-3gxh-qm6r)2 days before publication
- 2023-11-30Published by the CNA05:20 UTC
Exploit and advisory records
GitHub advisory GHSA-ww7x-3gxh-qm6r, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist simplesamlphp/saml2 | from 5.0.0-alpha.12 before 5.0.0-alpha.13 | 5.0.0-alpha.13 |
| Packagist simplesamlphp/xml-security | from 1.6.11 before 1.6.12 | 1.6.12 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| simplesamlphp xml-security | 1.6.11no fix listed | not listed |
| simplesamlphp saml2 | 5.0.0no fix listed | not listed |
References
- https://github.com/simplesamlphp/xml-security/commit/f509e3083dd7870cce5880c804b5122317287581
- https://github.com/simplesamlphp/xml-security/security/advisories/GHSA-ww7x-3gxh-qm6r
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2023-49087'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2023-49087'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2023-49087'curl 'https://api.contrastcyber.com/cve_products/CVE-2023-49087'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).