{"id":"CVE-2024-55875","published":"2024-12-12T18:56:59Z","modified":"2026-06-09T10:42:10Z","title":"http4k has a potential XXE (XML External Entity Injection) vulnerability","vendor":"http4k","product":"http4k","tier":"tail","description":{"text":"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 `<!DOCTYPE>` 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 `<!DOCTYPE>` is now rejected at parse time.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01889,"percentile":0.80061,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"},{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/http4k/http4k/security/advisories/GHSA-7mj5-hjjj-8rgw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/http4k/http4k/commit/35297adc6d6aca4951d50d8cdf17ff87a8b19fbc","tags":["x_refsource_MISC"]},{"url":"https://github.com/http4k/http4k/blob/25696dff2d90206cc1da42f42a1a8dbcdbcdf18c/core/format/xml/src/main/kotlin/org/http4k/format/Xml.kt#L42-L46","tags":["x_refsource_MISC"]}],"priority":{"score":27.9,"factors":[{"name":"EPSS percentile","points":16.01},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-12-13","earliestUrl":"https://github.com/JAckLosingHeart/CVE-2024-55875","repos":[{"name":"JAckLosingHeart/CVE-2024-55875","url":"https://github.com/JAckLosingHeart/CVE-2024-55875","stars":8,"created":"2024-12-13"}]},"first":{"date":"2024-12-13","source":"PoC-in-GitHub","url":"https://github.com/JAckLosingHeart/CVE-2024-55875"},"provenance":"source"},"vendorSlug":"http4k","affectedVersions":[{"vendor":"http4k","product":"http4k","versions":["< 6.50.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-12-13T14:52:57.520637Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.http4k:http4k-format-xml","vulnerableRanges":["<6.50.0.0"],"patched":["6.50.0.0"],"from":["GHSA-7mj5-hjjj-8rgw"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-3444","exploited":false,"provenance":"source"}}