CVE-2025-54812 Details
Description
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.
A vulnerability exists in Apache Log4cxx versions prior to 1.5.0, specifically within the HTMLLayout component. The issue arises because logger names are not properly escaped when written to HTML files. If untrusted data is used to determine a logger's name, an attacker could inject HTML or JavaScript, potentially leading to information being hidden from logs or data being stolen from the user. This vulnerability could be exploited by logging a message with a compromised logger name, which would then be opened in a web browser, creating a cross-site scripting (XSS) risk.
Users are advised to upgrade to Apache Log4cxx version 1.5.0, which addresses this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/10/msg00002.html | CVE | |
| http://www.openwall.com/lists/oss-security/2025/08/22/2 | CVE | |
| https://github.com/apache/logging-log4cxx/pull/509 | [email protected] | Issue TrackingPatch |
| https://github.com/apache/logging-log4cxx/pull/514 | [email protected] | Issue TrackingPatch |
| https://logging.apache.org/security.html#CVE-2025-54812 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-117 | Improper Output Neutralization for Logs | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache log4cxx | < 1.5.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 4, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Aug 26, 2025 | Initial Analysis | [email protected] |
| Aug 22, 2025 | New CVE Received | [email protected] |