CVE-2025-54812
mediumpriority · track · 22EPSS 0.012 · 69 %ileEURUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 0.5–5.4
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-54812cnnvd
- https://github.com/apache/logging-log4cxx/pull/509cnnvd
- https://github.com/apache/logging-log4cxx/pull/514cnnvd
- https://logging.apache.org/security.html#CVEPatchcnnvd
- https://logging.apache.org/security.html#CVE-2025-54812cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-54812cnnvd
- https://github.com/apache/logging-log4cxx/pull/509enisa_euvd
- https://github.com/apache/logging-log4cxx/pull/514enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan