# CVE-2024-52806: SimpleSAMLphp SAML2 has an XXE in parsing SAML messages

Source: https://junglewise.ai/threats/cve-2024-52806-simplesamlphp-saml2-has-an-xxe-in-parsing-saml-messages  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-12-02  
License: CC BY 4.0 with a link back

CVE-2024-52806 · Severity: low · CVSS 3.1 · Published 2024-12-02

SimpleSAMLphp SAML2 has an XXE in parsing SAML messages

Technologies: [simplesamlphp/saml2 (Packagist)](https://junglewise.ai/threats/technologies/simplesamlphp-saml2), [simplesamlphp/saml2-legacy (Packagist)](https://junglewise.ai/threats/technologies/simplesamlphp-saml2-legacy). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2024-52806 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-52806 being exploited in the wild.

**How severe is CVE-2024-52806?** Low severity, with a CVSS score of 3.1, published 2 December 2024.

**Which products and versions are affected?** simplesamlphp/saml2 (Packagist) ECOSYSTEM:introduced=0,fixed=4.6.14; simplesamlphp/saml2-legacy (Packagist) ECOSYSTEM:introduced=0,fixed=4.6.14.

**Is there a fix for CVE-2024-52806?** Yes. simplesamlphp/saml2 (Packagist): upgrade to 4.6.14 or later; simplesamlphp/saml2-legacy (Packagist): upgrade to 4.6.14 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-52806?** Check whether you run simplesamlphp/saml2 (Packagist) or simplesamlphp/saml2-legacy (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- simplesamlphp/saml2 (Packagist): upgrade to 4.6.14 or later

  ```sh
  composer require simplesamlphp/saml2:^4.6.14
  ```

- simplesamlphp/saml2-legacy (Packagist): upgrade to 4.6.14 or later

  ```sh
  composer require simplesamlphp/saml2-legacy:^4.6.14
  ```


## Affected products

- simplesamlphp/saml2 (Packagist) ECOSYSTEM:introduced=0,fixed=4.6.14
- simplesamlphp/saml2-legacy (Packagist) ECOSYSTEM:introduced=0,fixed=4.6.14

## Identifiers

- CVE-2024-52806
- GHSA-pxm4-r5ph-q2m2

## Related threats

- [SimpleSAMLphp saml2 Denial of Service via XPath Transform](https://junglewise.ai/threats/cve-2026-49289-simplesamlphp-saml2-denial-of-service-via-xpath-transform)
- [SimpleSAMLphp saml2 authentication bypass via TLS validator confusion](https://junglewise.ai/threats/cve-2026-49283-simplesamlphp-saml2-authentication-bypass-via-tls-validator)
- [The SimpleSAMLphp SAML2 library incorrectly verifies signatures for HTTP-Redirect binding](https://junglewise.ai/threats/cve-2025-27773-the-simplesamlphp-saml2-library-incorrectly-verifies-signatures)
- [Validation of SignedInfo](https://junglewise.ai/threats/cve-2023-49087-validation-of-signedinfo)
- [SimpleSAMLphp SAML2 spoof SAML responses](https://junglewise.ai/threats/cve-2016-9814-simplesamlphp-saml2-spoof-saml-responses)
