CVE-2025-54813Apache Log4cxx: Improper escaping with JSONLayout
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | log4cxx | Under investigation | UBUNTU-CVE-2025-54813 | |
| Ubuntu 25.10 | log4cxx | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-54813 | |
| Ubuntu 24.04 | log4cxx | Under investigation | UBUNTU-CVE-2025-54813 | |
| Ubuntu 22.04 | log4cxx | Under investigation | UBUNTU-CVE-2025-54813 | |
| Ubuntu 20.04 | log4cxx | Fix pending | UBUNTU-CVE-2025-54813 | |
| Ubuntu 18.04 | log4cxx | Fix pending | UBUNTU-CVE-2025-54813 | |
| Ubuntu 16.04 | log4cxx | Fix pending | UBUNTU-CVE-2025-54813 | |
| Ubuntu 14.04 | log4cxx | Fix pending | UBUNTU-CVE-2025-54813 | |
| Debian 14 | log4cxx | Fixed | 1.4.0-1.1 | DEBIAN-CVE-2025-54813 |
| Debian 13 | log4cxx | Fixed | 1.4.0-1+deb13u1 | DEBIAN-CVE-2025-54813 |
| Debian 12 | log4cxx | Fixed | 1.0.0-1+deb12u1 | DEBIAN-CVE-2025-54813 |
| Red Hat Enterprise Linux 7 | log4cxx | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | log4cxx-devel | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Log4cxx: affected: 0.11.0 to before 1.5.0; fixed in
1.5.0
Vendor advisories:
- https://logging.apache.org/security.html#CVE-2025-54813 (vendor-advisory)
- https://github.com/apache/logging-log4cxx/pull/512 (patch)
References
- https://logging.apache.org/security.html#CVE-2025-54813
- https://github.com/apache/logging-log4cxx/pull/512
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.