CVE-2025-54813 Apache Log4cxx: Improper escaping with JSONLayout
MediumCVSS 6.3
EPSS 1.5%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/log4cxx(Debian:12) | < 1.0.0-1+deb12u1 | 1.0.0-1+deb12u1 |
| debian/log4cxx(Debian:12) | = 1.0.0-1 | No fix listed |
| debian/log4cxx(Debian:13) | < 1.4.0-1+deb13u1 | 1.4.0-1+deb13u1 |
| debian/log4cxx(Debian:13) | = 1.4.0-1 | No fix listed |
| debian/log4cxx(Debian:14) | < 1.4.0-1.1 | 1.4.0-1.1 |
| debian/log4cxx(Debian:14) | = 1.4.0-1 | No fix listed |
| Apache Log4cxx | >= 0.11.0, < 1.5.0 | 1.5.0 |
| ubuntu/log4cxx(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/log4cxx(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/log4cxx(Ubuntu:26.04) | All versions | No fix listed |
| apache log4cxx | < 1.5.0 | 1.5.0 |
References
- Debian Security Tracker CVE-2025-54813 vendor-advisory
- logging.apache.org vendor-advisory
- github.com issue-tracking patch
- lists.debian.org
- www.openwall.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking