{"id":"CVE-2023-49087","published":"2023-11-30T05:20:28Z","modified":"2024-08-02T21:46:29Z","title":"Validation of SignedInfo","vendor":"simplesamlphp","product":"xml-security","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00218,"percentile":0.07113,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/simplesamlphp/xml-security/security/advisories/GHSA-ww7x-3gxh-qm6r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/simplesamlphp/xml-security/commit/f509e3083dd7870cce5880c804b5122317287581","tags":["x_refsource_MISC"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":1.42},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"simplesamlphp","affectedVersions":[{"vendor":"simplesamlphp","product":"xml-security","versions":["= 1.6.11","= 5.0.0-alpha.12"]}],"affected":[{"ecosystem":"Packagist","package":"simplesamlphp/xml-security","vulnerableRanges":[">=1.6.11, <1.6.12"],"patched":["1.6.12"],"from":["GHSA-ww7x-3gxh-qm6r"],"provenance":"source"},{"ecosystem":"Packagist","package":"simplesamlphp/saml2","vulnerableRanges":[">=5.0.0-alpha.12, <5.0.0-alpha.13"],"patched":["5.0.0-alpha.13"],"from":["GHSA-ww7x-3gxh-qm6r"],"provenance":"source"}],"summary":{"text":"The xml-security library from simplesamlphp fails to properly validate XML signatures: it checks the document's digest against DigestValue but does not sufficiently bind that check to the SignedInfo signature verified against a trusted key, so a manipulated canonicalized DigestValue could allow a signature to be forged. An attacker would need network access and must exploit a separate weakness in PHP's canonicalization function to alter the canonicalized DigestValue, a condition that makes the attack complex to carry out, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:39Z"},"euvd":{"id":"EUVD-2023-3057","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-7711","published":"2018-03-05","fixed":"3.1.4","kev":false},{"cve":"CVE-2024-52806","published":"2024-12-02","fixed":"4.6.14","kev":false},{"cve":"CVE-2026-49289","published":"2026-08-19","fixed":"4.20.3","kev":false},{"cve":"CVE-2023-49087","published":"2023-11-30","fixed":"5.0.0-alpha.13","kev":false},{"cve":"CVE-2025-27773","published":"2025-03-11","fixed":"5.0.0-alpha.20","kev":false,"link":{"from":"CVE-2023-49087","to":"CVE-2025-27773","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:simplesamlphp/saml2","fromFixed":"5.0.0-alpha.13","toFixed":"5.0.0-alpha.20","daysApart":467}]}},{"cve":"CVE-2026-49283","published":"2026-08-19","fixed":"6.2.1","kev":false},{"cve":"CVE-2026-110782","published":"2026-11-17","fixed":"7.0.0-rc2","kev":false}],"package":"Packagist:simplesamlphp/saml2"}}