USN-9358-1: Apache Log4cxx vulnerabilities

Publication date

1 December 2026

Overview

Several security issues were fixed in Apache Log4cxx.


Packages

  • log4cxx - Logging library for C++

Details

It was discovered that Apache Log4cxx did not properly escape logger names
when using HTMLLayout. If an application used untrusted data as a logger
name, an attacker could possibly use this issue to perform cross-site
scripting attacks when a user viewed the generated HTML log file.
(CVE-2025-54812)

It was discovered that Apache Log4cxx did not properly escape certain
non-printable characters when using JSONLayout. An attacker could possibly
use this issue to cause applications that consume the logs to misinterpret
the logged information. This issue only affected Ubuntu 22.04 LTS and
Ubuntu 24.04 LTS. (CVE-2025-54813)

It was discovered that Apache Log4cxx did not properly escape logger names
when using HTMLLayout. If an application used untrusted data as a logger
name, an attacker could possibly use this issue to perform cross-site
scripting attacks when a user viewed the generated HTML log file.
(CVE-2025-54812)

It was discovered that Apache Log4cxx did not properly escape certain
non-printable characters when using JSONLayout. An attacker could possibly
use this issue to cause applications that consume the logs to misinterpret
the logged information. This issue only affected Ubuntu 22.04 LTS and
Ubuntu 24.04 LTS. (CVE-2025-54813)

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
24.04 LTS noble liblog4cxx15 –  1.1.0-1ubuntu0.1~esm1  
22.04 LTS jammy liblog4cxx12 –  0.12.1-4ubuntu0.1~esm1  
20.04 LTS focal liblog4cxx10v5 –  0.10.0-15ubuntu2+esm1  
18.04 LTS bionic liblog4cxx10v5 –  0.10.0-13ubuntu2+esm1  
16.04 LTS xenial liblog4cxx10v5 –  0.10.0-10ubuntu1+esm1
14.04 LTS trusty liblog4cxx10 –  0.10.0-1.2ubuntu3+esm1  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›