CVE-2025-54812: Apache Log4cxx · Log Injection
Affects Apache Log4cxxSource CVE Database V5
Not known to be exploited · CVSS 2.1 Low · fixed in 1.5.0 : update Apache Log4cxx when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 1.2% chance of exploitation in 30 days – higher than 68% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.5.0
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Log4cxx | Affected
| Fixed in– |
AI-suggested
1. Upgrade Apache Log4cxx to version 1.5.0 or later, where the vulnerability is fixed by proper escaping of logger names in HTMLLayout. 2. Avoid using HTMLLayout for logging if possible, especially if untrusted input might influence logger names. 3. Ensure logger names are static and controlled by the application, never derived from user input or untrusted sources. 4. Implement strict input validation and sanitization on any data that could influence logger names or other log metadata. 5. Educate users and administrators to avoid opening HTML log files from untrusted sources or environments. 6. Consider alternative logging formats (e.g., plain text or JSON) that do not render in browsers or execute scripts. 7. Monitor logs for suspicious entries that could indicate attempts to inject malicious content. 8. Apply principle of least privilege to limit who can configure logging and access log files. 9. Integrate log integrity verification mechanisms to detect tampering. 10. Regularly review and audit logging configurations and practices to ensure compliance with security policies.
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.
References
- logging.apache.org/security.html (opens in a new tab)
- github.com/apache/logging-log4cxx/pull/509 (opens in a new tab)
- github.com/apache/logging-log4cxx/pull/514 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/10/msg00002.html (opens in a new tab)
- openwall.com/lists/oss-security/2025/08/22/2 (opens in a new tab)