UBUNTU-CVE-2025-68161

Source
https://ubuntu.com/security/CVE-2025-68161
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-68161.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-68161
Upstream
Downstream
Related
Published
2025-12-18T21:15:00Z
Modified
2026-12-02T02:20:09Z
Severity
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N (Source: CNA) CVSS Calculator
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N (Source: NVD) CVSS Calculator
  • Ubuntu - medium (Source: SELF)
Summary
[none]
Details

The Socket Appender in Apache Log4j Core versions 2.0-beta9 through 2.25.2 does not perform TLS hostname verification of the peer certificate, even when the verifyHostName https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName configuration attribute or the log4j2.sslVerifyHostName https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName system property is set to true. This issue may allow a man-in-the-middle attacker to intercept or redirect log traffic under the following conditions: * The attacker is able to intercept or redirect network traffic between the client and the log receiver. * The attacker can present a server certificate issued by a certification authority trusted by the Socket Appender’s configured trust store (or by the default Java trust store if no custom trust store is configured). Users are advised to upgrade to Apache Log4j Core version 2.25.3, which addresses this issue. As an alternative mitigation, the Socket Appender may be configured to use a private or restricted trust root to limit the set of trusted certificates.

References

Affected packages

Ubuntu:25.10
apache-log4j2

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2?arch=source&distro=questing

Affected ranges

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

Affected versions

2.*
2.19.0-2

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "liblog4j2-java",
            "binary_version":  "2.19.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-68161.json"
Ubuntu:26.10
apache-log4j2

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2?arch=source&distro=stonking

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.19.0-2ubuntu0.26.10.1

Affected versions

2.*
2.19.0-2build1

Ecosystem specific

{
    "availability":  "No subscription required",
    "binaries":  [
        {
            "binary_name":  "liblog4j2-java",
            "binary_version":  "2.19.0-2ubuntu0.26.10.1"
        }
    ]
}

Database specific

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

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2?arch=source&distro=esm-infra-legacy%2Fxenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.4-2ubuntu0.1~esm2

Affected versions

2.*
2.2-1
2.4-1
2.4-2
2.4-2ubuntu0.1~esm1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "liblog4j2-java",
            "binary_version":  "2.4-2ubuntu0.1~esm2"
        }
    ]
}

Database specific

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

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2?arch=source&distro=esm-apps%2Fbionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.12.4-0ubuntu0.1+esm1

Affected versions

2.*
2.8.2-1
2.8.2-2
2.10.0-1
2.10.0-2
2.10.0-2ubuntu0.1
2.12.4-0ubuntu0.1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "liblog4j2-java",
            "binary_version":  "2.12.4-0ubuntu0.1+esm1"
        }
    ]
}

Database specific

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

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.17.1-0.20.04.1ubuntu0.1~esm1

Affected versions

2.*
2.11.1-2
2.11.2-1
2.15.0-0.20.04.1
2.16.0-0.20.04.1
2.17.0-0.20.04.1
2.17.1-0.20.04.1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "liblog4j2-java",
            "binary_version":  "2.17.1-0.20.04.1ubuntu0.1~esm1"
        }
    ]
}

Database specific

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

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.17.1-1ubuntu0.1~esm1

Affected versions

2.*
2.13.3-1
2.15.0-1
2.16.0-1
2.17.0-1
2.17.1-1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "liblog4j2-java",
            "binary_version":  "2.17.1-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

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

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2?arch=source&distro=esm-apps%2Fnoble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.19.0-2ubuntu0.24.04.1~esm1

Affected versions

2.*
2.19.0-2

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "liblog4j2-java",
            "binary_version":  "2.19.0-2ubuntu0.24.04.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-68161.json"
Ubuntu:Pro:26.04:LTS
apache-log4j2

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2?arch=source&distro=esm-apps%2Fresolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.19.0-2ubuntu0.26.04.1~esm1

Affected versions

2.*
2.19.0-2
2.19.0-2build1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "liblog4j2-java",
            "binary_version":  "2.19.0-2ubuntu0.26.04.1~esm1"
        }
    ]
}

Database specific

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