CVE-2024-55875
published 2024-12-12CVE-2024-55875: http4k is a functional toolkit for Kotlin HTTP applications. Prior to version 6.50.0.0, there is a potential XXE (XML External Entity Injection) vulnerability…
PriorityP258critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
1.90%
77.1th percentile
http4k is a functional toolkit for Kotlin HTTP applications. Prior to version 6.50.0.0, there is a potential XXE (XML External Entity Injection) vulnerability when http4k handling malicious XML contents within requests, which might allow attackers to read local sensitive information on server, trigger Server-side Request Forgery and even execute code under some circumstances. The original fix shipped in v5.41.0.0 / v4.50.0.0 closed the documented external-entity attack class (SSRF, local-file disclosure, code execution) by setting `ACCESS_EXTERNAL_DTD=""`, `ACCESS_EXTERNAL_SCHEMA=""`, and `isExpandEntityReferences=false` on the default `DocumentBuilderFactory`. A residual gap remained: the parser still accepted documents containing `` declarations even though external entity resolution was blocked. This left open billion-laughs-style internal entity expansion DoS attacks against any application using `Body.xml()` or `Document.asXmlDocument()` on untrusted XML. v6.50.0.0 closes this residual by adding `disallow-doctype-decl=true` and `FEATURE_SECURE_PROCESSING=true` to `defaultXmlParsingConfig`. Any document containing a `` is now rejected at parse time.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| http4k | http4k | < 6.50.0.0 | 6.50.0.0 |
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
http4k has a potential XXE (XML External Entity Injection) vulnerability
ghsa·2024-12-12
CVE-2024-55875 [CRITICAL] CWE-200 http4k has a potential XXE (XML External Entity Injection) vulnerability
http4k has a potential XXE (XML External Entity Injection) vulnerability
### Summary
_Short summary of the problem. Make the impact and severity as clear as possible. For example: An unsafe deserialization vulnerability allows any unauthenticated user to execute arbitrary code on the server._
There is a potential XXE(XML External Entity Injection) vulnerability when http4k handling malicious XML contents within requests, which might allow attackers to read local sensitive information on server, trigger Server-side Request Forgery and even execute code under some circumstances.
### Details
_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._
https://github.com/http4k/http4k/blob/25696dff2d90206cc1da42f42a1a8dbcdbcdf18c/core
OSV
http4k has a potential XXE (XML External Entity Injection) vulnerability
osv·2024-12-12
CVE-2024-55875 [CRITICAL] http4k has a potential XXE (XML External Entity Injection) vulnerability
http4k has a potential XXE (XML External Entity Injection) vulnerability
### Summary
_Short summary of the problem. Make the impact and severity as clear as possible. For example: An unsafe deserialization vulnerability allows any unauthenticated user to execute arbitrary code on the server._
There is a potential XXE(XML External Entity Injection) vulnerability when http4k handling malicious XML contents within requests, which might allow attackers to read local sensitive information on server, trigger Server-side Request Forgery and even execute code under some circumstances.
### Details
_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._
https://github.com/http4k/http4k/blob/25696dff2d90206cc1da42f42a1a8dbcdbcdf18c/core
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/http4k/http4k/blob/25696dff2d90206cc1da42f42a1a8dbcdbcdf18c/core/format/xml/src/main/kotlin/org/http4k/format/Xml.kt#L42-L46https://github.com/http4k/http4k/commit/35297adc6d6aca4951d50d8cdf17ff87a8b19fbchttps://github.com/http4k/http4k/security/advisories/GHSA-7mj5-hjjj-8rgwhttps://github.com/http4k/http4k/security/advisories/GHSA-7mj5-hjjj-8rgw
2024-12-12
Published