CVE-2024-55875
published critical CVSS 3.1 · 9.8http4k has a potential XXE (XML External Entity Injection) vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| http4k | — | http4k< 6.50.0.0 | Affected | Not stated | GitHub_M |
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 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| http4k | http4k | < 6.50.0.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-611 CWE-611: Improper Restriction of XML External Entity Reference
- CWE-918 CWE-918: Server-Side Request Forgery (SSRF)
References
3Provider assertions
2GitHub_M · cna
http4k has a potential XXE (XML External Entity Injection) vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c8f859c80f11a9275f700a3069d5ed2ca31fd31e1de042a4a8c64de850ebd9a6
- Ingested
- 23 Sep 2026, 08:31:43 UTC
- Source record
- Official CVE record