All reports
Medium

apache-log4cxx: Log4cxx: Improper JSON Output Neutralization

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-54813

Probability of exploitation in the next 30 days: 1.50%

FIRST EPSS · 2026-11-20

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.

A flaw was found in apache-log4cxx. When utilizing JSONLayout, the component fails to properly escape certain payload bytes, allowing attacker-supplied messages containing specific non-printable characters to be passed through unescaped. This allows an attacker to inject arbitrary data into log outputs possibly preventing applications which consumes the generated log files unable to read it.