CVE-2025-54812
CVE-2025-54812 is a medium-severity vulnerability in Apache Log4cxx with a CVSS 3.x base score of 5.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-117.
Key facts
- Severity: Medium (CVSS 3.x base score 5.4)
- CVSS v4: 2.1
- EPSS exploit prediction: 1% (61st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-25621
- Weakness: CWE-117
- Affected product: Apache Log4cxx
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-54812?
- 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.
- How severe is CVE-2025-54812?
- CVE-2025-54812 has a CVSS 3.x base score of 5.4, rated medium severity. It is exploitable over network with low attack complexity, requires low privileges and user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2025-54812 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (61st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-54812?
- CVE-2025-54812 affects Apache Log4cxx. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-54812?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2025-54812 have an EU (EUVD) identifier?
- Yes. CVE-2025-54812 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-25621.
- When was CVE-2025-54812 published?
- CVE-2025-54812 was published on 2025-08-22 and last updated on 2026-06-17.
References
- https://github.com/apache/logging-log4cxx/pull/509
- https://github.com/apache/logging-log4cxx/pull/514
- https://logging.apache.org/security.html#CVE-2025-54812
- http://www.openwall.com/lists/oss-security/2025/08/22/2
- https://lists.debian.org/debian-lts-announce/2025/10/msg00002.html
Affected products (1)
- cpe:2.3:a:apache:log4cxx:*:*:*:*:*:*:*:*
More vulnerabilities in Apache Log4cxx
- CVE-2023-31038 — High (CVSS 8.8): SQL injection in Log4cxx when using the ODBC appender to send log messages to a database. No fields sent to the…
- CVE-2025-54813 — High (CVSS 7.5): Improper Output Neutralization for Logs vulnerability in Apache Log4cxx. When using JSONLayout, not all payload bytes…
- CVE-2026-40023 — Medium (CVSS 5.3): Apache Log4cxx's XMLLayout https://logging.apache.org/log4cxx/1.7.0/classlog4cxx_1_1xml_1_1XMLLayout.html , in…
All CVEs affecting Apache Log4cxx →
Other CWE-117 (Improper Output Neutralization for Logs) vulnerabilities
- CVE-2023-46322 — Critical (CVSS 9.8): iTermSessionLauncher.m in iTerm2 before 3.5.0beta12 does not sanitize ssh hostnames in URLs. The hostname's initial…
- CVE-2023-46321 — Critical (CVSS 9.8): iTermSessionLauncher.m in iTerm2 before 3.5.0beta12 does not sanitize paths in x-man-page URLs. They may have shell…
- CVE-2024-0095 — Critical (CVSS 9.0): NVIDIA Triton Inference Server for Linux and Windows contains a vulnerability where a user can inject forged logs and…
- CVE-2024-25047 — High (CVSS 8.6): IBM Cognos Analytics 11.2.0 through 11.2.4 and 12.0.0 through 12.0.2 is vulnerable to injection attacks in application…
- CVE-2025-57564 — High (CVSS 8.2): CubeAPM nightly-2025-08-01-1 allow unauthenticated attackers to inject arbitrary log entries into production systems…
- CVE-2026-10745 — High (CVSS 7.9): Improper output neutralization for logs vulnerability in upKeeper Solutions upKeeper Instant Privilege Access on…
Browse all CWE-117 (Improper Output Neutralization for Logs) vulnerabilities →