Feed
5.9MEDIUM

CVE-2026-34477Apache Log4j Core: `verifyHostName` attribute silently ignored in TLS configuration

A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.5% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.5%
percentile 38%
Priority
23/100 low
how it is computed
Fix
Named by a source
CVE published 10 Apr 2026

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.5% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • org.apache.logging.log4j:log4j-core (Maven) pkg:maven/org.apache.logging.log4j/log4j-core

    • Affected>= 2.12.0, < 2.25.4Fixed in2.25.4OSV (GHSA-6hg6-v5c8-fphq)
    • Affected>= 3.0.0-alpha1, <= 3.0.0-beta3Last known affected3.0.0-beta3OSV (GHSA-6hg6-v5c8-fphq)
  • apache log4j product:apache/log4j

    • Affected>= 2.12.0, < 2.25.4Affected range ends before2.25.4as published by CNA (CVE List)
    • Affected>= 3.0.0-alpha1, <= 3.0.0-beta3Last known affected3.0.0-beta3as published by CNA (CVE List)
    • Affected>= 2.12.0, < 2.25.4Affected range ends before2.25.4as published by CPE data (via the NVD API)
    • Affected3.0.0-alpha1Fixed innot namedas published by CPE data (via the NVD API)
    • Affected3.0.0-alpha1_rc1Fixed innot namedas published by CPE data (via the NVD API)
    • Affected3.0.0-alpha1_rc2Fixed innot namedas published by CPE data (via the NVD API)
    • Affected3.0.0-beta1Fixed innot namedas published by CPE data (via the NVD API)
    • Affected3.0.0-beta2Fixed innot namedas published by CPE data (via the NVD API)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
5.9 MEDIUM (version 3.1)
Score from
NVD
Attack vector
network
Attack complexity
high
Privileges required
none
User interaction
none
Weakness
CWE-297, CWE-295
Exploitation (CISA SSVC)
none
Automatable (CISA SSVC)
no
Assigned by
[email protected]

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)The fix for CVE-2025-68161 https://logging.apache.org/security.html#CVE-2025-68161 was incomplete: it addressed hostname verification only when enabled via the log4j2.sslVerifyHostName https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName system property, but not when configured through the verifyHostName https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName attribute of the <Ssl> element. Although the verifyHostName configuration attribute was introduced in Log4j Core 2.12.0, it was silently ignored in all versions through 2.25.3, leaving TLS connections vulnerable to interception regardless of the configured value. A network-based attacker may be able to perform a man-in-the-middle attack when all of the following conditions are met: * An SMTP, Socket, or Syslog appender is in use. * TLS is configured via a nested <Ssl> element. * The attacker can present a certificate issued by a CA trusted by the appender's configured trust store, or by the default Java trust store if none is configured. This issue does not affect users of the HTTP appender, which uses a separate verifyHostname https://logging.apache.org/log4j/2.x/manual/appenders/network.html#HttpAppender-attr-verifyHostName attribute that was not subject to this bug and verifies host names by default. Users are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue.

Update history

  • 10 Apr 2026Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 17 min ago · osv 17 min ago · nvd 46 min ago · epss 77 min ago · JSON · ask via MCP: explain_vulnerability

Also known as GHSA-6hg6-v5c8-fphq