Description#

There is a 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.

Affected http4k modules & versions#

Mitigation#

Users of affected versions should upgrade to the corresponding fixed version as below. http4k EE subscribers can access the fixed LTS versions through the dedicated http4k Maven instance. For more details about the http4k EE LTS versions, please contact http4k enterprise support

VersionFixed VersionAvailability
<= 5.40.0.05.41.0.0Community & Enterprise Support
<= 4.49.0.04.50.0.0Enterprise Support Only

Older, unsupported versions are also affected.

Resolution timeline#

Date/time (UTC)Notes
12/12/2024 09:49Advisory opened by @JAckLosingHeart
12/12/2024 10:04Advisory accepted and private fork created
12/12/2024 10:15Issue recreated on private fork with failing test
12/12/2024 10:56PR raised on private fork with fix and request for review
12/12/2024 12:26PR reviewed and accepted
12/12/2024 12:35PR merged
12/12/2024 12:43CVE requested from GitHub
12/12/2024 15:02CVE-2024-55875 assigned by GitHub
12/12/2024 15:30Patch applied to http4k-LTS-v4, and http4k EE LTS v4.50.0.0 released to LTS Maven repo
12/12/2024 16:11Fix released in http4k CE v5.41.0.0 and available in Maven Central
12/12/2024 16:13Public disclosure

References