{"answers":{"affected":"2 open source packages ship an affected version, including org.http4k:http4k-format-xml.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-55875 exists.","fix":"Upgrade org.http4k:http4k-format-xml to 6.50.0.0 or later.","what":"CVE-2024-55875 is a critical vulnerability in http4k, published on 12 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-55875 and fix it if it is affected.\n\nWhat it is: CVE-2024-55875 is a critical vulnerability in http4k, published on 12 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-55875 exists.\n\nAffected packages and fixed versions:\n- org.http4k:http4k-format-xml (Maven): affected all versions; fixed in 6.50.0.0\n- org.http4k:http4k-format-xml (Maven): affected all versions; fixed in 6.50.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-55875/ (Markdown: https://insights.sbomify.com/CVE-2024-55875/index.md)","id":"CVE-2024-55875","markdown":"https://insights.sbomify.com/CVE-2024-55875/index.md","name":"CVE-2024-55875","record":{"aliases":["GHSA-7mj5-hjjj-8rgw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Kotlin HTTP toolkit","requires_auth":"none","summary":"Attackers can exploit XML parsing flaws in http4k to read local files, trigger SSRF, or cause denial of service via entity expansion.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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 `\u003c!DOCTYPE\u003e` 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 `\u003c!DOCTYPE\u003e` is now rejected at parse time.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2024-12-13","github_poc":1,"max_poc_stars":8,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-13T06:21:36Z","kind":"github_poc","ref":"https://github.com/JAckLosingHeart/CVE-2024-55875","stars":8,"title":"CVE-2024-55875 | GHSA-7mj5-hjjj-8rgw | http4k first CVE"}],"tier":"weaponised"},"has_fix":true,"headline":"http4k has a potential XXE (XML External Entity Injection) vulnerability","id":"CVE-2024-55875","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"XWiki's scheduler in subwiki allows scheduling operations for any main wiki user","id":"CVE-2024-55876"},"packages":[{"ecosystem":"Maven","fixed":["6.50.0.0"],"introduced":["0"],"last_affected":[],"package":"org.http4k:http4k-format-xml","purl":null,"source":"GHSA-7mj5-hjjj-8rgw"},{"ecosystem":"Maven","fixed":["6.50.0.0"],"introduced":["0"],"last_affected":[],"package":"org.http4k:http4k-format-xml","purl":"pkg:maven/org.http4k/http4k-format-xml","source":"GHSA-7mj5-hjjj-8rgw"}],"prev":{"headline":"Cross-site scripting in My WP Customize Admin/Frontend","id":"CVE-2024-55864"},"products":["http4k"],"published":"2024-12-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-09","vendors":["http4k"]},"summary":"Attackers can exploit XML parsing flaws in http4k to read local files, trigger SSRF, or cause denial of service via entity expansion.","url":"https://insights.sbomify.com/CVE-2024-55875/"}