Live threats

All CVEs / Simplesamlphp

CVE-2023-49087Simplesamlphp Saml2

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Saml2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
simplesamlphpsaml25.0.0
simplesamlphpxml-security1.6.11

Official sources

References

Links published by the sources. Open them with care.