{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-55875","id":"CVE-2024-55875","title":"http4k has a potential XXE (XML External Entity Injection) vulnerability","description":"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 ship","descriptionLong":"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.","published":"2024-12-12T18:56:59.499Z","updated":"2026-10-28T02:31:04.813763574Z","reserved":"2024-12-11T15:46:36.420Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["http4k"],"affectedProducts":[{"vendor":"http4k","product":"http4k","defaultStatus":null,"versions":[{"version":"< 6.50.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.http4k:http4k-format-xml","purl":"pkg:maven/org.http4k/http4k-format-xml","ranges":["<6.50.0.0"],"fixed":["6.50.0.0"],"advisory":"GHSA-7mj5-hjjj-8rgw"}],"cwes":["CWE-200","CWE-611","CWE-918"],"aliases":["GHSA-7mj5-hjjj-8rgw"],"references":[{"url":"https://github.com/http4k/http4k/security/advisories/GHSA-7mj5-hjjj-8rgw","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/http4k/http4k/commit/35297adc6d6aca4951d50d8cdf17ff87a8b19fbc","tags":["x_refsource_MISC","fix","web"]},{"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","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/55xxx/CVE-2024-55875.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55875","tags":["advisory"]},{"url":"https://github.com/http4k/http4k","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.01889,"epssPercentile":0.80001,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-55875","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55875","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-55875","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7mj5-hjjj-8rgw","ok":true,"note":"GHSA-7mj5-hjjj-8rgw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-55875","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}