# CVE-2023-49087: Validation of SignedInfo

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-11-28T18:52:19.000Z
- Modified: 2026-09-10T03:50:04.325Z
- Also known as: GHSA-ww7x-3gxh-qm6r
- Weaknesses: CWE-345
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- simplesamlphp xml-security: = 1.6.11; = 5.0.0-alpha.12; 1.6.11
- simplesamlphp/xml-security (Packagist): from 1.6.11 before 1.6.12
- simplesamlphp/saml2 (Packagist): from 5.0.0-alpha.12 before 5.0.0-alpha.13
- simplesamlphp saml2: 5.0.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/simplesamlphp/xml-security/security/advisories/GHSA-ww7x-3gxh-qm6r> (exploit, vendor-advisory, web)
- <https://github.com/simplesamlphp/xml-security/commit/f509e3083dd7870cce5880c804b5122317287581> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-49087> (advisory)
- <https://github.com/simplesamlphp/xml-security> (package)
- <https://github.com/simplesamlphp/xml-security/blob/master/src/XML/SignedElementTrait.php> (web)

## Sources

- CVE List: [CVE-2023-49087](https://www.cve.org/CVERecord?id=CVE-2023-49087), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-ww7x-3gxh-qm6r](https://github.com/advisories/GHSA-ww7x-3gxh-qm6r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-49087](https://nvd.nist.gov/vuln/detail/CVE-2023-49087), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-49087 · Whole record: https://cve.day/CVE-2023-49087.json · Rebuilt by cve.day 2026-11-25T22:58:30.798Z
