Threat Advisory

Apache Log4cxx Flaws Allow Cross-Site Scripting and Log Injection

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Multiple security vulnerabilities have been identified in Apache Log4cxx, a C++ logging library, affecting supported distribution releases that use the package, including 22.04 LTS and 24.04 LTS. The flaws can allow cross-site scripting through generated HTML logs and log misinterpretation through JSON logs, posing risk to applications that expose or consume logs, and may be triggered by untrusted input in some cases.

CVE-2025-54812: Apache Log4cxx did not properly escape logger names when using HTMLLayout. If an application used untrusted data as a logger name, an attacker could possibly perform cross-site scripting attacks when a user viewed the generated HTML log file.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Multiple security vulnerabilities have been identified in Apache Log4cxx, a C++ logging library, affecting supported distribution releases that use the package, including 22.04 LTS and 24.04 LTS. The flaws can allow cross-site scripting through generated HTML logs and log misinterpretation through JSON logs, posing risk to applications that expose or consume logs, and may be triggered by untrusted input in some cases.

CVE-2025-54812: Apache Log4cxx did not properly escape logger names when using HTMLLayout. If an application used untrusted data as a logger name, an attacker could possibly perform cross-site scripting attacks when a user viewed the generated HTML log file.[emaillocker id="1283"]

CVE-2025-54813: Apache Log4cxx did not properly escape certain non-printable characters when using JSONLayout. An attacker could possibly cause applications that consume the logs to misinterpret the logged information, and this issue only affected the 22.04 LTS and 24.04 LTS releases.

These vulnerabilities collectively present a risk to applications that generate or consume logs, especially where untrusted input can influence logger names or log content. The greatest concern is for environments that expose generated logs to users or rely on machine-readable log output. Organizations should assess whether untrusted data can reach these logging paths.

RECOMMENDATION:

We recommend you to refer this link: https://ubuntu.com/security/notices/USN-9358-1

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu