CVE-2024-55875: XXE(XML External Entity Injection) vulnerability

Severity: HIGH
December 12, 2024

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

  • http4k-format-xml
    • 5.40.0.0 and below
    • 4.49.0.0 and below

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/timeNotes
12/12/2024 0949Advisory opened by @JAckLosingHeart
12/12/2024 1004Advisory accepted and private fork created
12/12/2024 1015Issue recreated on private fork with failing test.
12/12/2024 1056PR raised on private fork with fix and request for review
12/12/2024 1226PR review and accepted
12/12/2024 1235PR merged
12/12/2024 1243CVE requested from GitHub
12/12/2024 1502CVE number CVE-2024-55875  assigned
12/12/2024 1530Patch applied to http4k-LTS-v4, and http4k EE LTS v4.50.0.0 released to LTS Maven repo
12/12/2024 1611http4k CE v5.41.0.0 released & available in Maven Central
12/12/2024 1613Public disclosure

References