SCA: security update for org.http4k:http4k-format-xml (GHSA-7mj5-hjjj-8rgw)

critical Tenable Cloud Security Plugin ID 412147

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2024-55875)

See Also

https://github.com/advisories/GHSA-7mj5-hjjj-8rgw

Plugin Details

Severity: Critical

ID: 412147

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: High

Score: 7.6

Percentile: 98.53

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-55875

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/12/2024

Vulnerability Publication Date: 12/12/2024

Reference Information

CVE: CVE-2024-55875