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.

Severity
MEDIUM
CVSS v3
6.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N · source cna
Exploit chance (EPSS)
0.193%
chance of exploitation in the next 30 days
higher than 9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2023-11-28GitHub advisory published (GHSA-ww7x-3gxh-qm6r)2 days before publication
  2. 2023-11-30Published by the CNA05:20 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-ww7x-3gxh-qm6r, affected packages:

PackageVulnerable versionsFixed in
Packagist simplesamlphp/saml2from 5.0.0-alpha.12 before 5.0.0-alpha.135.0.0-alpha.13
Packagist simplesamlphp/xml-securityfrom 1.6.11 before 1.6.121.6.12

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
simplesamlphp xml-security1.6.11no fix listednot listed
simplesamlphp saml25.0.0no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources