UBUNTU-CVE-2025-54812

Source
https://ubuntu.com/security/CVE-2025-54812
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54812.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-54812
Upstream
Published
2025-08-22T19:15:00Z
Modified
2026-01-20T19:04:36.014228Z
Severity
  • 2.1 (Low) CVSS_V4 - 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 CVSS Calculator
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:14.04:LTS
log4cxx

Package

Name
log4cxx
Purl
pkg:deb/ubuntu/log4cxx@0.10.0-1.2ubuntu3?arch=source&distro=trusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.10.0-1.2ubuntu3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "liblog4cxx10",
            "binary_version": "0.10.0-1.2ubuntu3"
        },
        {
            "binary_name": "liblog4cxx10-dev",
            "binary_version": "0.10.0-1.2ubuntu3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54812.json"
Ubuntu:16.04:LTS
log4cxx

Package

Name
log4cxx
Purl
pkg:deb/ubuntu/log4cxx@0.10.0-10ubuntu1?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.10.0-9ubuntu1
0.10.0-9ubuntu2
0.10.0-10ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "liblog4cxx-dev",
            "binary_version": "0.10.0-10ubuntu1"
        },
        {
            "binary_name": "liblog4cxx10-dev",
            "binary_version": "0.10.0-10ubuntu1"
        },
        {
            "binary_name": "liblog4cxx10v5",
            "binary_version": "0.10.0-10ubuntu1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54812.json"
Ubuntu:18.04:LTS
log4cxx

Package

Name
log4cxx
Purl
pkg:deb/ubuntu/log4cxx@0.10.0-13ubuntu2?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.10.0-12ubuntu1
0.10.0-13ubuntu1
0.10.0-13ubuntu2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "liblog4cxx-dev",
            "binary_version": "0.10.0-13ubuntu2"
        },
        {
            "binary_name": "liblog4cxx10v5",
            "binary_version": "0.10.0-13ubuntu2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54812.json"
Ubuntu:20.04:LTS
log4cxx

Package

Name
log4cxx
Purl
pkg:deb/ubuntu/log4cxx@0.10.0-15ubuntu2?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.10.0-15ubuntu1
0.10.0-15ubuntu2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "liblog4cxx-dev",
            "binary_version": "0.10.0-15ubuntu2"
        },
        {
            "binary_name": "liblog4cxx10v5",
            "binary_version": "0.10.0-15ubuntu2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54812.json"
Ubuntu:22.04:LTS
log4cxx

Package

Name
log4cxx
Purl
pkg:deb/ubuntu/log4cxx@0.12.1-4?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.11.0-2ubuntu1
0.11.0-3ubuntu2
0.12.1-4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "liblog4cxx-dev",
            "binary_version": "0.12.1-4"
        },
        {
            "binary_name": "liblog4cxx12",
            "binary_version": "0.12.1-4"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54812.json"
Ubuntu:24.04:LTS
log4cxx

Package

Name
log4cxx
Purl
pkg:deb/ubuntu/log4cxx@1.1.0-1build3?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.1.0-1
1.1.0-1build1
1.1.0-1build2
1.1.0-1build3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "liblog4cxx-dev",
            "binary_version": "1.1.0-1build3"
        },
        {
            "binary_name": "liblog4cxx15",
            "binary_version": "1.1.0-1build3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54812.json"
Ubuntu:25.10
log4cxx

Package

Name
log4cxx
Purl
pkg:deb/ubuntu/log4cxx@1.4.0-1?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.3.1-1
1.4.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "liblog4cxx-dev",
            "binary_version": "1.4.0-1"
        },
        {
            "binary_name": "liblog4cxx15",
            "binary_version": "1.4.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54812.json"