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.test.osv.dev/v1/vulns/UBUNTU-CVE-2025-68161
Upstream
Published
2025-12-19T00:00:00Z
Modified
2025-12-19T18:15:06.500603Z
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 CVSS Calculator
  • Ubuntu - medium
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:18.04:LTS

apache-log4j2

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2@2.12.4-0ubuntu0.1?arch=source&distro=bionic

Affected ranges

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

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

{
    "binaries": [
        {
            "binary_version": "2.12.4-0ubuntu0.1",
            "binary_name": "liblog4j2-java"
        }
    ]
}

Database specific

source

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

Ubuntu:20.04:LTS

apache-log4j2

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2@2.17.1-0.20.04.1?arch=source&distro=focal

Affected ranges

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

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

{
    "binaries": [
        {
            "binary_version": "2.17.1-0.20.04.1",
            "binary_name": "liblog4j2-java"
        }
    ]
}

Database specific

source

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

Ubuntu:22.04:LTS

apache-log4j2

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2@2.17.1-1?arch=source&distro=jammy

Affected ranges

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

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

{
    "binaries": [
        {
            "binary_version": "2.17.1-1",
            "binary_name": "liblog4j2-java"
        }
    ]
}

Database specific

source

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

Ubuntu:24.04:LTS

apache-log4j2

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2@2.19.0-2?arch=source&distro=noble

Affected ranges

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

Affected versions

2.*

2.19.0-2

Ecosystem specific

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

Database specific

source

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

Ubuntu:25.04

apache-log4j2

Package

Name
apache-log4j2
Purl
pkg:deb/ubuntu/apache-log4j2@2.19.0-2?arch=source&distro=plucky

Affected ranges

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

Affected versions

2.*

2.19.0-2

Ecosystem specific

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

Database specific

source

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

Ubuntu:25.10

apache-log4j2

Package

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

Affected ranges

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

Affected versions

2.*

2.19.0-2

Ecosystem specific

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

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@2.4-2ubuntu0.1~esm1?arch=source&distro=esm-infra/xenial

Affected ranges

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

Affected versions

2.*

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

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.4-2ubuntu0.1~esm1",
            "binary_name": "liblog4j2-java"
        }
    ]
}

Database specific

source

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