XXE in esaml SAML library allows local file read and potential SSRF
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in bab85efde7c136911402a881ca55173759467a26 and *.
XML External Entity (XXE) vulnerability in esaml (and its forks) allows an attacker to cause the system to read local files and incorporate their contents into processed SAML documents, and potentially perform SSRF via crafted SAML messages. esaml parses attacker-controlled SAML messages using xmerl_scan:string/2 before signature verification without disabling XML entity expansion. On Erlang/OTP versions before 27, Xmerl allows entities by default, enabling pre-signature XXE attacks. An attacker can cause the host to read local files (e.g., Kubernetes-mounted secrets) into the SAML document. If the attacker is not a trusted SAML SP, signature verification will fail and the document is discarded, but file contents may still be exposed through logs or error messages. This issue affects all versions of esaml, including forks by arekinath, handnot2, and dropbox. Users running on Erlang/OTP 27 or later are not affected due to Xmerl defaulting to entities disabled. This issue affects esaml: all versions.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Jump-App | >=deeb84378d5c82153b470e99d24f77c38afca14a <bab85efde7c136911402a881ca55173759467a26 | bab85efde7c136911402a881ca55173759467a26 | |
| Jump-App | esaml | <=4.6.0 | |
| arekinath | esaml | <=1.1 | |
| arekinath | =deeb84378d5c82153b470e99d24f77c38afca14a | * | |
| dropbox | =deeb84378d5c82153b470e99d24f77c38afca14a | * | |
| dropbox | esaml | ||
| handnot2 | =deeb84378d5c82153b470e99d24f77c38afca14a | * | |
| handnot2 | esaml | <=4.2.0 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket