# CVE-2025-54813: Apache Log4cxx: Improper escaping with JSONLayout

- Severity: Medium 6.3 (CVSS:4.0, scored by apache) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/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.62%, higher than 76% of CVEs (2026-12-02)
- Published: 2025-08-22T18:45:42.611Z
- Modified: 2026-06-17T09:40:45.287Z
- Weaknesses: CWE-117
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: apache

## Description

Improper Output Neutralization for Logs vulnerability in Apache Log4cxx.

When using JSONLayout, not all payload bytes are properly escaped. If an attacker-supplied message contains certain non-printable characters, these will be passed along in the message and written out as part of the JSON message. This may prevent applications that consume these logs from correctly interpreting the information within them.

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: from 0.11.0 before 1.5.0
- apache log4cxx: before 1.5.0

## Every score

- apache: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

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

## Sources

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

---

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