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
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.
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.
Tue, Dec 1, 2026
- AdvisoryUSN-9274-1: Apache Log4j 2 vulnerabilitiesUbuntu · 00:35 UTC
Sat, Nov 28, 2026
Tue, Nov 3, 2026
- DetectionNessus plugin 375477: AlmaLinux 9.2 [TuxCare] Security Update: log4j / log4j-jcl / log4j-slf4j / log4j-web (ALMALINUX9.2:CLSA-2026:1792633697)Tenable
- DetectionNessus plugin 375479: AlmaLinux 9.2 [TuxCare] Security Update: log4j / log4j-jcl / log4j-slf4j / log4j-web (ALMALINUX9.2:CLSA-2026:1792624679)Tenable
Thu, Dec 18, 2025
- CVECVE-2025-68161 published (CVSS 4.8)CVE Program · 21:15 UTC
References 8
- github.com Patch /apache/logging-log4j2/pull/4002
- logging.apache.org Vendor Advisory /cyclonedx/vdr.xml
- logging.apache.org ExploitVendor Advisory /security.html#CVE-2025-68161
- lists.apache.org /thread/xr33kyxq3sl67lwb61ggvm1fzc8k7dvx
- logging.apache.org /log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName
- logging.apache.org /log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName
- www.openwall.com /lists/oss-security/2025/12/18/1
- lists.debian.org /debian-lts-announce/2026/01/msg00015.html