CVE-2024-52596
published 2024-12-02CVE-2024-52596: SimpleSAMLphp xml-common is a common classes for handling XML-structures. When loading an (untrusted) XML document, for example the SAMLResponse, it's possible…
PriorityP344high8.8CVSS 4.0
AVNACLATNPRNUINVCHVINVAHSCLSILSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
EPSS
0.98%
58.3th percentile
SimpleSAMLphp xml-common is a common classes for handling XML-structures. When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE. This vulnerability is fixed in 1.19.0.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | simplesamlphp | < simplesamlphp 1.19.7-1+deb12u1 (bookworm) | simplesamlphp 1.19.7-1+deb12u1 (bookworm) |
| simplesamlphp | simplesamlphp | >= 0 < 1.19.0-1+deb11u1 | 1.19.0-1+deb11u1 |
| simplesamlphp | simplesamlphp | >= 0 < 1.19.7-1+deb12u1 | 1.19.7-1+deb12u1 |
| simplesamlphp | simplesamlphp | >= 0 < 2.0.15 | 2.0.15 |
| simplesamlphp | simplesamlphp | >= 2.1.0 < 2.1.7 | 2.1.7 |
| simplesamlphp | simplesamlphp | >= 2.2.0 < 2.2.4 | 2.2.4 |
| simplesamlphp | simplesamlphp | >= 2.3.0 < 2.3.4 | 2.3.4 |
| simplesamlphp | xml-common | < 1.20.0 | 1.20.0 |
| simplesamlphp | xml-common | >= 0 < 1.20.0 | 1.20.0 |
CVSS provenance
nvdv4.08.8HIGHCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
ghsa8.8HIGH
osv8.8HIGH
vendor_debian8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
SimpleSAMLphp xml-common XXE vulnerability
ghsa·2024-12-02
CVE-2024-52596 [HIGH] CWE-611 SimpleSAMLphp xml-common XXE vulnerability
SimpleSAMLphp xml-common XXE vulnerability
Summary
When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE.
$options is defined as: https://github.com/simplesamlphp/xml-common/blob/v1.19.0/src/DOMDocumentFactory.php#L39
including the DTDLoad option, which allows an attacker to read file contents from local file system OR internal network.
While there is the NONET option, an attacker can simply bypass if by using PHP filters:
php://filter/convert.base64-encode/resource=http://URL OR FILE
From there an attacker can induce network connections and steal the targeted file OOB (haven't fully tested this).
RCE may be possible with the php://expect or php://phar wrappers, but this hasn't been tested.
Note:
The mitigation here:
https://github.co
OSV
SimpleSAMLphp vulnerable to XXE in parsing SAML messages
osv·2024-12-02·CVSS 8.8
CVE-2024-52596 [HIGH] SimpleSAMLphp vulnerable to XXE in parsing SAML messages
SimpleSAMLphp vulnerable to XXE in parsing SAML messages
## Withdrawn Advisory
This advisory has been withdrawn because the vulnerability affects users of the SimpleSAMLphp tarball, not the SimpleSAMLphp Composer package. The underlying information about CVE-2024-52596 is still valid.
## Original Description
# Summary
When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE.
## Mitigation:
Remove the `LIBXML_DTDLOAD | LIBXML_DTDATTR` options from `$options` is in: https://github.com/simplesamlphp/saml2/blob/717c0adc4877ebd58428637e5626345e59fa0109/src/SAML2/DOMDocumentFactory.php#L41
## Background / details
To be published on Dec 8th
GHSA
SimpleSAMLphp vulnerable to XXE in parsing SAML messages
ghsa·2024-12-02·CVSS 8.8
CVE-2024-52596 [HIGH] CWE-611 SimpleSAMLphp vulnerable to XXE in parsing SAML messages
SimpleSAMLphp vulnerable to XXE in parsing SAML messages
## Withdrawn Advisory
This advisory has been withdrawn because the vulnerability affects users of the SimpleSAMLphp tarball, not the SimpleSAMLphp Composer package. The underlying information about CVE-2024-52596 is still valid.
## Original Description
# Summary
When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE.
## Mitigation:
Remove the `LIBXML_DTDLOAD | LIBXML_DTDATTR` options from `$options` is in: https://github.com/simplesamlphp/saml2/blob/717c0adc4877ebd58428637e5626345e59fa0109/src/SAML2/DOMDocumentFactory.php#L41
## Background / details
To be published on Dec 8th
OSV
CVE-2024-52596: SimpleSAMLphp xml-common is a common classes for handling XML-structures
osv·2024-12-02·CVSS 8.8
CVE-2024-52596 [HIGH] CVE-2024-52596: SimpleSAMLphp xml-common is a common classes for handling XML-structures
SimpleSAMLphp xml-common is a common classes for handling XML-structures. When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE. This vulnerability is fixed in 1.19.0.
OSV
SimpleSAMLphp xml-common XXE vulnerability
osv·2024-12-02
CVE-2024-52596 [HIGH] SimpleSAMLphp xml-common XXE vulnerability
SimpleSAMLphp xml-common XXE vulnerability
Summary
When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE.
$options is defined as: https://github.com/simplesamlphp/xml-common/blob/v1.19.0/src/DOMDocumentFactory.php#L39
including the DTDLoad option, which allows an attacker to read file contents from local file system OR internal network.
While there is the NONET option, an attacker can simply bypass if by using PHP filters:
php://filter/convert.base64-encode/resource=http://URL OR FILE
From there an attacker can induce network connections and steal the targeted file OOB (haven't fully tested this).
RCE may be possible with the php://expect or php://phar wrappers, but this hasn't been tested.
Note:
The mitigation here:
https://github.co
Debian
CVE-2024-52596: simplesamlphp - SimpleSAMLphp xml-common is a common classes for handling XML-structures. When l...
vendor_debian·2024·CVSS 8.8
CVE-2024-52596 [HIGH] CVE-2024-52596: simplesamlphp - SimpleSAMLphp xml-common is a common classes for handling XML-structures. When l...
SimpleSAMLphp xml-common is a common classes for handling XML-structures. When loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE. This vulnerability is fixed in 1.19.0.
Scope: local
bookworm: resolved (fixed in 1.19.7-1+deb12u1)
bullseye: resolved (fixed in 1.19.0-1+deb11u1)
sid: resolved (fixed in 1.19.7-1+deb12u1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-12-02
Published