CVE-2023-49087Simplesamlphp Saml2
High 7.5 No auth needed
Follow: this CVE · Simplesamlphp · Simplesamlphp Saml2 We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 0.2% probability of exploitation in 30 days · percentile 7
- Auth required
- No
- Published
- Nov 30, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-345
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Saml2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | simplesamlphp/saml2 |
≥ 5.0.0-alpha.12 < 5.0.0-alpha.13 |
5.0.0-alpha.13 |
composer require "simplesamlphp/saml2:^5.0.0-alpha.13" |
| Packagist | simplesamlphp/xml-security |
≥ 1.6.11 < 1.6.12 |
1.6.12 |
composer require "simplesamlphp/xml-security:^1.6.12" |
Per OSV / GitHub Advisories (GHSA-ww7x-3gxh-qm6r). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| simplesamlphp | saml2 | 5.0.0 |
| simplesamlphp | xml-security | 1.6.11 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory