CVE-2025-68161

MediumCVSS 4.8/10Last modified Jun 17, 2026

Description

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.

Metrics

CVSS 3.1 4.8/10CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Weakness enumeration

Affected software

VendorProductVersions
Apache Software FoundationApache Log4j Core>= 2.0-beta9, < 2.25.3; >= 3.0.0-alpha1, <= 3.0.0-beta3

References

Timeline

Published
Dec 18, 2025
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2025

CVE-2025-681622.7In JetBrains TeamCity before 2025.11 maven embedder allowed loading extensions via project configurationCVE-2025-681634.8In JetBrains TeamCity before 2025.11 stored XSS was possible on agentpushInstall pageCVE-2025-681642.7In JetBrains TeamCity before 2025.11 port enumeration was possible via the Perforce connection testCVE-2025-681656.1In JetBrains TeamCity before 2025.11 reflected XSS was possible on VCS Root setupCVE-2025-681666.1In JetBrains TeamCity before 2025.11 a DOM-based XSS was possible on the OAuth connections tabCVE-2025-681677.8In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix invalid pointer access in debugfs If the memory allocatioCVE-2025-681687.8In the Linux kernel, the following vulnerability has been resolved: jfs: fix uninitialized waitqueue in transaction manager The transactioCVE-2025-68169In the Linux kernel, the following vulnerability has been resolved: netpoll: Fix deadlock in memory allocation under spinlock Fix a AA deaCVE-2025-68173.3A vulnerability, which was classified as problematic, has been found in HDF5 1.14.6. This issue affects the function H5C__load_entry of the CVE-2025-681707.8In the Linux kernel, the following vulnerability has been resolved: drm/radeon: Do not kfree() devres managed rdev Since the allocation ofCVE-2025-681717.8In the Linux kernel, the following vulnerability has been resolved: x86/fpu: Ensure XFD state on signal delivery Sean reported [1] the folCVE-2025-68172In the Linux kernel, the following vulnerability has been resolved: crypto: aspeed - fix double free caused by devm The clock obtained via
CVE-2025-68161: Medium severity, CVSS 4.8 | Vulnix