CVE-2025-54812
Summary
It was discovered that 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 use this issue to perform cross-site scripting attacks when a user viewed the generated HTML log file. (CVE-2025-54812) It was discovered that Apache Log4cxx did not properly escape certain non-printable characters whe…
Severity breakdown
Low · 2.1
An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must deliberately do something
- Impact
- low on confidentiality and integrity, none on availability
- Impact on other systems
- low on confidentiality and integrity, none on availability
Weakness
- CWE-117: Improper Output Neutralization for Logs
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Log4cxx | < 1.5.0 | 1.5.0 |
References by type
Vendor advisories
Patches and fixed releases
Other references
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2025-54812?
It was discovered that 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 use this issue to perform cross-site scripting attacks when a user viewed the generated HTML log file. (CVE-2025-54812) It was discovered that Apache Log4cxx did not properly escape certain non-printable characters whe… Weakness type: Improper Output Neutralization for Logs (CWE-117).
How severe is CVE-2025-54812?
CVE-2025-54812 has a CVSS 4.0 base score of 2.1 (low), from the CNA (apache.org). An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
Is CVE-2025-54812 being exploited?
Not as far as is known: CVE-2025-54812 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 1.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2025-54812?
Apache Software Foundation Apache Log4cxx < 1.5.0 (fixed in 1.5.0).
How do I fix CVE-2025-54812?
Update to a fixed release: Apache Software Foundation Apache Log4cxx 1.5.0.
Timeline & sources
References
Related vulnerabilities & news
- GHSA-5w3m-mfwg-9f8r / CVE-2026-118513 — Symfony: X509Authenticator and X509AuthenticationListener Read Escaped RFC 2253 Commas and Bare Slashes Inside a DN Value as RDN Boundaries
- Canadian Cyber Centre Warns of Apache Struts Vulnerability Affecting Versions Up to 2.5.33, 6.12.0 and 7.4.0
- Apache NiFi CVE-2026-116636: CSRF gap affects client-certificate logins, fixed in 2.13.0
- Apache NiFi Flaw Lets Users Run Arbitrary Code via Jolt Transform Preview
- Apache NiFi JoltTransformJSON UI Flaw Can Leak Process Environment Data