CVEfocus › CVE database › CVE-2025-54812

CVE-2025-54812Apache Log4cxx: Improper HTML escaping in HTMLLayout

CVSS 2.1 LowEPSS 1.2% (higher than 67% of CVEs)Published 2025-08-22Updated 2025-11-04Assigner: apache

Improper Output Neutralization for Logs vulnerability in Apache Log4cxx. When using HTMLLayout, logger names are not properly escaped when writing out to the HTML file. If untrusted data is used to retrieve the name of a logger, an attacker could theoretically inject HTML or Javascript in order to hide information from logs or steal data from the user. In order to activate this, the following sequence must occur: * Log4cxx is configured to use HTMLLayout. * Logger name comes from an untrusted string * Logger with compromised name logs a message * User opens the generated HTML log file in their browser, leading to potential XSS Because logger names are generally constant strings, we assess the impact to users as LOW This issue affects Apache Log4cxx: before 1.5.0. Users are recommended to upgrade to version 1.5.0, which fixes the issue.

CWE-117

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
4Fix pending
3Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04log4cxxUnder investigationUBUNTU-CVE-2025-54812
Ubuntu 25.10log4cxxWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-54812
Ubuntu 24.04log4cxxUnder investigationUBUNTU-CVE-2025-54812
Ubuntu 22.04log4cxxUnder investigationUBUNTU-CVE-2025-54812
Ubuntu 20.04log4cxxFix pendingUBUNTU-CVE-2025-54812
Ubuntu 18.04log4cxxFix pendingUBUNTU-CVE-2025-54812
Ubuntu 16.04log4cxxFix pendingUBUNTU-CVE-2025-54812
Ubuntu 14.04log4cxxFix pendingUBUNTU-CVE-2025-54812
Debian 14log4cxxFixed1.4.0-1.1DEBIAN-CVE-2025-54812
Debian 13log4cxxFixed1.4.0-1+deb13u1DEBIAN-CVE-2025-54812
Debian 12log4cxxFixed1.0.0-1+deb12u1DEBIAN-CVE-2025-54812
Red Hat Enterprise Linux 7log4cxxWill not fix
Out of support scope
Red Hat Enterprise Linux 7log4cxx-develWill not fix
Out of support scope

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.