CVEfocus › CVE database › CVE-2026-34477

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

CVSS 6.3 MediumEPSS 0.5% (higher than 38% of CVEs)Published 2026-04-10Updated 2026-04-10Assigner: apache

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.

CWE-297

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
15Fix pending
3Under investigation
4Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10apache-log4j2Fix pendingUBUNTU-CVE-2026-34477
Ubuntu 26.04apache-log4j2Under investigationUBUNTU-CVE-2026-34477
Ubuntu 25.10apache-log4j2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-34477
Ubuntu 24.04apache-log4j2Under investigationUBUNTU-CVE-2026-34477
Ubuntu 22.04apache-log4j2Under investigationUBUNTU-CVE-2026-34477
Ubuntu 20.04apache-log4j2Fix pendingUBUNTU-CVE-2026-34477
Ubuntu 18.04apache-log4j2Fix pendingUBUNTU-CVE-2026-34477
Ubuntu 16.04apache-log4j2Fix pendingUBUNTU-CVE-2026-34477
Red Hat Enterprise Linux 9log4jWill not fix
Out of support scope
Red Hat Enterprise Linux 9log4j-jclWill not fix
Out of support scope
Red Hat Enterprise Linux 9log4j-slf4jWill not fix
Out of support scope
Red Hat Enterprise Linux 9pki-resteasy-clientFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-coreFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-jackson2-providerFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-servlet-initializerFix pending
Fix deferred
Red Hat Enterprise Linux 9resteasyFix pending
Fix deferred
Red Hat Enterprise Linux 8log4jFix pending
Fix deferred
Red Hat Enterprise Linux 8log4j-jclFix pending
Fix deferred
Red Hat Enterprise Linux 8log4j-slf4jFix pending
Fix deferred
Red Hat Enterprise Linux 8log4j-webFix pending
Fix deferred
Red Hat Enterprise Linux 8resteasyFix pending
Fix deferred
Red Hat Enterprise Linux 8resteasy-javadocFix pending
Fix deferred
Maven libraryorg.apache.logging.log4j:log4j-coreFixed2.25.4GHSA-6hg6-v5c8-fphq

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.