ubuntu-cve-2025-54812
Vulnerability from osv_ubuntu
Improper Output Neutralization for Logs vulnerability in Apache Log4cxx. When using HTMLLayout, logger names are not properly escaped when writing out to the HTML file. If untrusted data is used to retrieve the name of a logger, an attacker could theoretically inject HTML or Javascript in order to hide information from logs or steal data from the user. In order to activate this, the following sequence must occur: * Log4cxx is configured to use HTMLLayout. * Logger name comes from an untrusted string * Logger with compromised name logs a message * User opens the generated HTML log file in their browser, leading to potential XSS Because logger names are generally constant strings, we assess the impact to users as LOW This issue affects Apache Log4cxx: before 1.5.0. Users are recommended to upgrade to version 1.5.0, which fixes the issue.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4cxx10",
"binary_version": "0.10.0-1.2ubuntu3"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "log4cxx",
"purl": "pkg:deb/ubuntu/log4cxx@0.10.0-1.2ubuntu3?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.10.0-1.2ubuntu3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4cxx10v5",
"binary_version": "0.10.0-10ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "log4cxx",
"purl": "pkg:deb/ubuntu/log4cxx@0.10.0-10ubuntu1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.10.0-9ubuntu1",
"0.10.0-9ubuntu2",
"0.10.0-10ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4cxx10v5",
"binary_version": "0.10.0-13ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "log4cxx",
"purl": "pkg:deb/ubuntu/log4cxx@0.10.0-13ubuntu2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.10.0-12ubuntu1",
"0.10.0-13ubuntu1",
"0.10.0-13ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4cxx10v5",
"binary_version": "0.10.0-15ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "log4cxx",
"purl": "pkg:deb/ubuntu/log4cxx@0.10.0-15ubuntu2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.10.0-15ubuntu1",
"0.10.0-15ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4cxx12",
"binary_version": "0.12.1-4"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "log4cxx",
"purl": "pkg:deb/ubuntu/log4cxx@0.12.1-4?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.11.0-2ubuntu1",
"0.11.0-3ubuntu2",
"0.12.1-4"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4cxx15",
"binary_version": "1.1.0-1build3"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "log4cxx",
"purl": "pkg:deb/ubuntu/log4cxx@1.1.0-1build3?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.1.0-1",
"1.1.0-1build1",
"1.1.0-1build2",
"1.1.0-1build3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4cxx15",
"binary_version": "1.4.0-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "log4cxx",
"purl": "pkg:deb/ubuntu/log4cxx@1.4.0-1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.3.1-1",
"1.4.0-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblog4cxx15",
"binary_version": "1.5.0-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "log4cxx",
"purl": "pkg:deb/ubuntu/log4cxx@1.5.0-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.4.0-1",
"1.5.0-1"
]
}
],
"aliases": [],
"details": "Improper Output Neutralization for Logs vulnerability in Apache Log4cxx. When using HTMLLayout, logger names are not properly escaped when writing out to the HTML file. If untrusted data is used to retrieve the name of a logger, an attacker could theoretically inject HTML or Javascript in order to hide information from logs or steal data from the user. In order to activate this, the following sequence must occur: * Log4cxx is configured to use HTMLLayout. * Logger name comes from an untrusted string * Logger with compromised name logs a message * User opens the generated HTML log file in their browser, leading to potential XSS Because logger names are generally constant strings, we assess the impact to users as LOW This issue affects Apache Log4cxx: before 1.5.0. Users are recommended to upgrade to version 1.5.0, which fixes the issue.",
"id": "UBUNTU-CVE-2025-54812",
"modified": "2026-05-20T15:22:55Z",
"published": "2025-08-22T19:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2025-54812"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2025-54812"
},
{
"type": "REPORT",
"url": "https://logging.apache.org/security.html#CVE-2025-54812"
},
{
"type": "REPORT",
"url": "https://github.com/apache/logging-log4cxx/pull/509"
},
{
"type": "REPORT",
"url": "https://github.com/apache/logging-log4cxx/commit/1c599de956ae9eedd8b5e3f744bfb867c39e8bba"
},
{
"type": "REPORT",
"url": "https://github.com/apache/logging-log4cxx/pull/514"
},
{
"type": "REPORT",
"url": "https://github.com/apache/logging-log4cxx/commit/36d829e9f6c3f9f4f9a42e22df326a9ed7b6e373"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
"type": "CVSS_V4"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2025-54812"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.