# CVE-2025-54812: Apache Log4cxx: Improper HTML escaping in HTMLLayout

- Severity: Low 2.1 (CVSS:4.0, scored by apache) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.48%, higher than 74% of CVEs (2026-12-01)
- Published: 2025-08-22T18:46:46.205Z
- Modified: 2026-06-17T09:40:45.153Z
- Weaknesses: CWE-117
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Log4cxx: before 1.5.0
- apache log4cxx: before 1.5.0

## Every score

- apache: CVSS:4.0 2.1 Low `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://logging.apache.org/security.html#CVE-2025-54812> (vendor-advisory)
- <https://github.com/apache/logging-log4cxx/pull/509> (issue-tracking, patch)
- <https://github.com/apache/logging-log4cxx/pull/514> (issue-tracking, patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00002.html>
- <http://www.openwall.com/lists/oss-security/2025/08/22/2>

## Sources

- CVE List: [CVE-2025-54812](https://www.cve.org/CVERecord?id=CVE-2025-54812), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2025-54812](https://nvd.nist.gov/vuln/detail/CVE-2025-54812), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54812 · Whole record: https://cve.day/CVE-2025-54812.json · Rebuilt by cve.day 2026-11-25T22:59:03.581Z
