Improper Validation of Certificate with Host Mismatch Affecting org.apache.logging.log4j:log4j-core package, versions [2.12.0, 2.25.4)[3.0.0-alpha1,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (31st 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-15967727
  • published10 Apr 2026
  • disclosed10 Apr 2026
  • creditSamuli Leinonen

Introduced: 10 Apr 2026

CVE-2026-34477  (opens in a new tab)
CWE-297  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

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 when configured through the verifyHostName attribute of the <Ssl> element. An attacker can intercept and manipulate network traffic by presenting a certificate issued by a trusted certificate authority to the appender's configured trust store, or the default Java trust store if none is configured. This is only exploitable if an SMTP, Socket, or Syslog appender is in use and TLS is configured via a nested element.

Note:

This issue is due to incomplete fix for CVE-2025-68161.

CVSS Base Scores

version 4.0
version 3.1