Skip to main content
No exploitation reportedFix available

CVE-2026-34477

No exploitation reported by the sources we read.

  • Published2026-04-10
  • Fixed in2.25.4
  • WeaknessCWE-295 · CWE-297

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2026-04-1016:16CVE publishedNVD

Versions per branch

NVD · OSV
Apache Log4j
BranchAffectedFixed in
2.x≥ 2.12.0, < 2.25.42.25.4
3.0= 3.0.0no fix published
3.0≥ 3.0.0-alpha1, ≤ 3.0.0-beta3no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache Log4j Coreother versions: not affected

    package org.apache.logging.log4j:log4j-corehttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 2.12.0, < 2.25.4fixed in 2.25.4maven
    • ≥ 3.0.0-alpha1, ≤ 3.0.0-beta3no fix statedmaven

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-04-10

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • activemqCleanStartall versions · fixed in 5.19.3-r1
  • activemqCleanStartall versions · fixed in 6.2.3-r1
  • activemqCleanStartall versions · fixed in 6.2.8-r2
  • airflow-3Wolfiall versions · fixed in 3.2.1-r1
  • airflow-3MinimOSall versions · fixed in 3.3.2-r0
  • airflow-3Chainguardall versions · fixed in 3.2.1-r1
  • akhqWolfiall versions · fixed in 0.27.0-r2
  • akhqMinimOSall versions · fixed in 0.28.0-r0and 1 other package

213 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-34477 Red Hat Product Security2 products fixed · 59 known affected

    org.apache.logging.log4j/log4j-core: Apache Log4j Core: Man-in-the-middle attack due to incomplete hostname verification

    redhat-user-workloads/rhaiis-cuda-ubi9-3-2-2 as a component of Red Hat AI Inference Server · redhat-user-workloads/rhaiis-cuda-ubi9-3-3 as a component of Red Hat AI Inference Server · log4j-core as a component of Red Hat AMQ Broker 7 · +56 more

  • RHSA-2026:21773 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat Offline Knowledge Portal security and content update

Full record on NVD

Fix

  1. Update Apache Log4j to 2.25.4
  2. Vendor fix Red Hat Product Security RHSA-2026:21773 · 2 productsThe container image provided by this update can be downloaded from the Red Hat container registry at registry.redhat.io using the "podman pull" command.
  3. Workaround from the vendor Red Hat Product Security RHSA-2026:21773 · 2 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  4. No fix available, says the vendor Red Hat Product Security CVE-2026-34477 · 56 productsFix deferred
  5. No fix planned, says the vendor Red Hat Product Security CVE-2026-34477 · 3 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2026-04-10
Last modified
2026-10-26
NVD status
Analyzed
MSRC title
Apache Log4j Core: verifyHostName attribute silently ignored in TLS configuration, allowing hostname verification bypass
GitHub advisory
GHSA-6hg6-v5c8-fphq

Frequently asked questions

What is CVE-2026-34477?

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.

Is CVE-2026-34477 actively exploited?

Active exploitation of CVE-2026-34477 has not been confirmed. Its EPSS score was 0.6% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-34477?

CVE-2026-34477 has a CVSS v3 base score of 5.9 (Medium severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running Apache Log4j? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record