ZeroDay Brief
CVE-2025-68161

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/…

CVSS
4.8Medium
Chance of exploitation (EPSS)
—
Published
Dec 18, 2025
In the news
1 story
Vendor advisory More from this vendor

What to do

A moderate security flaw in Apache Log4j that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.

Action: Apply the vendor's update or follow its advisory.

Fixed in: 2.25.3

Affected versions
Apache Log4j Core
2.0-beta9 to before 2.25.3; 3.0.0-alpha1 to through 3.0.0-beta3

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.

CWE-297CWE-295

Affected products

Get alerts for these →

Timeline 5

Latest change: USN-9274-1: Apache Log4j 2 vulnerabilities (Nov 30, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 8

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”