Improper Validation of Certificate with Host Mismatch Affecting org.apache.logging.log4j:log4j-core package, versions [,2.25.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHELOGGINGLOG4J-14532782
  • published19 Dec 2025
  • disclosed18 Dec 2025
  • creditSamuli Leinonen

Introduced: 18 Dec 2025

CVE-2025-68161  (opens in a new tab)
CWE-297  (opens in a new tab)

How to fix?

Upgrade org.apache.logging.log4j:log4j-core to version 2.25.3 or higher.

Overview

org.apache.logging.log4j:log4j-core is a logging library for Java.

Affected versions of this package are vulnerable to Improper Validation of Certificate with Host Mismatch due to the lack of TLS hostname verification in the SocketAppender component. An attacker can intercept or redirect log traffic by performing a man-in-the-middle attack if they are able to intercept or redirect network traffic between the client and the log receiver and can present a server certificate issued by a certification authority trusted by the configured trust store or the default Java trust store.

Workaround

This vulnerability can be mitigated by configuring the SocketAppender to use a private or restricted trust root to limit the set of trusted certificates.

CVSS Base Scores

version 4.0
version 3.1