CVE-2024-55875CWE-200CWE-611CWE-918

http4k has a potential XXE (XML External Entity Injection) vulnerability

Critical · published December 12, 2024

CVSS v3.1
9.8
EPSS
2%
Percentile
79.6
In the wild
Unconfirmed
What it is

🚨 A residual gap in http4k could allow attackers to exploit XML documents and unleash chaos on your server! 🔥 Think of it like a restaurant that blocks outside food but still lets patrons bring in takeout containers filled with mystery meals — the kitchen can't control what sneaks in! An attacker could unleash a billion-laughs attack, causing a denial of service by overwhelming your application with resource-hogging requests. Worse yet, they could read sensitive local files or even execute commands on your server, turning a simple XML request into a devastating breach. Yikes!

Put simply

Think of it like a restaurant that blocks outside food but still lets patrons bring in takeout containers filled with mystery meals — the kitchen can't control what sneaks in! This XXE vulnerability stems from the parser accepting documents with `<!DOCTYPE>` declarations, which, despite blocking external entities, can still be exploited for internal entity expansion attacks. Versions prior to 6.50.0.0 are impacted, but the latest release fixes this by rejecting such declarations outright.

What to do

An attacker could unleash a billion-laughs attack, causing a denial of service by overwhelming your application with resource-hogging requests. Worse yet, they could read sensitive local files or even execute commands on your server, turning a simple XML request into a devastating breach. Yikes! Update http4k to version 6.50.0.0 or later immediately to close this critical vulnerability. Ensure that your XML handling is configured to disallow doctype declarations and enable secure processing features. Don't forget to audit your applications that handle untrusted XML! You're a security hero in the making! Follow these steps and keep your server safe from sneaky XML attacks! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01905 · 79.6th percentile
Weaknesses
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor; CWE-611 · Improper Restriction of XML External Entity Reference; CWE-918 · Server-Side Request Forgery (SSRF)
Published
2024-12-12T18:56Z
EPSS history
Timeline
  • 12 DEC 18:56Z
    http4k has a potential XXE (XML External Entity Injection) vulnerability
    cvelistv5