CVE-2025-54813

Source
https://cve.org/CVERecord?id=CVE-2025-54813
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54813.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-54813
Downstream
Published
2025-08-22T18:45:42.611Z
Modified
2026-07-15T23:27:42.672687Z
Severity
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N CVSS Calculator
Summary
Apache Log4cxx: Improper escaping with JSONLayout
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54813.json",
    "cna_assigner": "apache",
    "cwe_ids": [
        "CWE-117"
    ]
}
References

Affected packages

Git / github.com/apache/logging-log4cxx

Affected ranges

Type
GIT
Repo
https://github.com/apache/logging-log4cxx
Events
Database specific
{
    "cpe": "cpe:2.3:a:apache:log4cxx:*:*:*:*:*:*:*:*",
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "extracted_events": [
        {
            "introduced": "0.11.0"
        },
        {
            "fixed": "1.5.0"
        },
        {
            "introduced": "0"
        }
    ]
}

Affected versions

rel/v0.*
rel/v0.11.0
rel/v0.12.0
rel/v1.*
rel/v1.0.0
rel/v1.1.0
rel/v1.2.0
rel/v1.3.0
rel/v1.3.1
rel/v1.4.0
v0.*
v0.11.0
v0.11.0-RC2
v0.12.0-RC1
v0.12.0-RC2
v1.*
v1.0.0-RC1
v1.1.0-RC1
v1.1.0-RC2
v1.2.0-RC1
v1.3.0-RC1
v1.3.1-RC1
v1.4.0-RC1

Database specific

vanir_signatures
[
    {
        "digest": {
            "length": 3056.0,
            "function_hash": "10636917034860357691950248520641527351"
        },
        "signature_version": "v1",
        "source": "https://github.com/apache/logging-log4cxx/commit/36d829e9f6c3f9f4f9a42e22df326a9ed7b6e373",
        "signature_type": "Function",
        "target": {
            "function": "HTMLLayout::format",
            "file": "src/main/cpp/htmllayout.cpp"
        },
        "id": "CVE-2025-54813-120130bd",
        "deprecated": false
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "115691767293790437547274272574744740826",
                "60396630125891992715968264925339125937",
                "327368558982129340238677189056450901036",
                "7425681559027065050971577842272102878",
                "101187088396883741962641609904519558325",
                "249990908515447934987227464968077885223"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/apache/logging-log4cxx/commit/36d829e9f6c3f9f4f9a42e22df326a9ed7b6e373",
        "signature_type": "Line",
        "target": {
            "file": "src/main/cpp/htmllayout.cpp"
        },
        "id": "CVE-2025-54813-592ad030",
        "deprecated": false
    }
]
vanir_signatures_modified
"2026-07-15T23:27:42Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54813.json"