{"id":"CVE-2024-55875","sourceIdentifier":"security-advisories@github.com","published":"2024-12-12T19:15:13.983","lastModified":"2026-06-17T08:11:23.553","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"http4k es un conjunto de herramientas funcionales para aplicaciones HTTP de Kotlin. Antes de la versión 5.41.0.0, existía una posible vulnerabilidad XXE (inyección de entidad externa XML) cuando http4k gestionaba contenido XML malicioso dentro de las solicitudes, lo que podría permitir a los atacantes leer información confidencial local en el servidor, activar Server-side Request Forgery e incluso ejecutar código en algunas circunstancias. La versión 5.41.0.0 contiene un parche para el problema."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"http4k","product":"http4k","versions":[{"version":"< 6.50.0.0","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-12-13T14:52:57.520637Z","id":"CVE-2024-55875","options":[{"exploitation":"poc"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-200"},{"lang":"en","value":"CWE-611"},{"lang":"en","value":"CWE-918"}]}],"references":[{"url":"https://github.com/http4k/http4k/blob/25696dff2d90206cc1da42f42a1a8dbcdbcdf18c/core/format/xml/src/main/kotlin/org/http4k/format/Xml.kt#L42-L46","source":"security-advisories@github.com"},{"url":"https://github.com/http4k/http4k/commit/35297adc6d6aca4951d50d8cdf17ff87a8b19fbc","source":"security-advisories@github.com"},{"url":"https://github.com/http4k/http4k/security/advisories/GHSA-7mj5-hjjj-8rgw","source":"security-advisories@github.com"},{"url":"https://github.com/http4k/http4k/security/advisories/GHSA-7mj5-hjjj-8rgw","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}