USN-9358-1: Apache Log4cxx vulnerabilities

Published Dec 1, 2026
·
Updated

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)

Affected Software

12 affected componentsFixes available
All of the following
ubuntu/liblog4cxx15<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=24.04
All of the following
ubuntu/liblog4cxx12<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=22.04
All of the following
ubuntu/liblog4cxx10v5<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/liblog4cxx10v5<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/liblog4cxx10v5<0.10.0-10ubuntu1+esm1
0.10.0-10ubuntu1+esm1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/liblog4cxx10<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=14.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/liblog4cxx15 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  2. Upgrade

    Upgrade ubuntu/liblog4cxx12 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  3. Upgrade

    Upgrade ubuntu/liblog4cxx10v5 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  4. Upgrade

    Upgrade ubuntu/liblog4cxx10v5 to a version that resolves this vulnerability.

    Fixed in 0.10.0-10ubuntu1+esm1
  5. Upgrade

    Upgrade ubuntu/liblog4cxx10 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro

Event History

Dec 1, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What conditions are required for the HTML log issue to be exploitable?

An application must use HTMLLayout and include untrusted data in a logger name. Exploitation occurs when someone views the generated HTML log file, enabling a possible cross-site scripting attack.

2

Which systems are affected by the JSON log parsing issue?

The JSONLayout issue affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS only. It involves non-printable characters that can cause applications consuming JSON logs to misinterpret logged information.

3

What should teams review while applying this update?

Review applications that use HTMLLayout with logger names derived from untrusted input, and identify generated HTML log files that may be viewed by users. Also review JSONLayout log consumers on Ubuntu 22.04 LTS and 24.04 LTS for reliance on unescaped log content.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203