Skip to main content

CVE-2026-34477 — Vulnerability in log4j-core — CVE Details

MEDIUM

Apache Log4j Core: `verifyHostName` attribute silently ignored in TLS configuration

Published April 10, 2026Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.52%). Schedule for your next planned update.

Does your project use an affected org.apache.logging.log4j:log4j-core version?

Paste your pom.xml to check it for CVE-2026-34477 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

The fix for CVE-2025-68161 was incomplete: it addressed hostname verification only when enabled via the log4j2.sslVerifyHostName system property, but not when configured through the 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 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 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.

Advisory Timeline

  • First published April 10, 2026 (230 days ago).
  • Last revised September 10, 2026 — 152 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.logging.log4j:log4j-core to 2.25.4 or later
<!-- Update pom.xml dependency version to 2.25.4 for org.apache.logging.log4j:log4j-core -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.apache.logging.log4j:log4j-core Maven · Affected: 2.12.0, 2.12.1, 2.12.2, 2.12.3 (+29 more)2.25.4
org.apache.logging.log4j:log4j-core Maven · Affected: 3.0.0-alpha1, 3.0.0-beta1, 3.0.0-beta2, 3.0.0-beta3Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 4.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2026-34477?
Apache Log4j Core: `verifyHostName` attribute silently ignored in TLS configuration. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 4.0/10).
How do I check if my project is affected by CVE-2026-34477?
CVE-2026-34477 affects org.apache.logging.log4j:log4j-core. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-34477 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
4.0

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.52%
EPSS percentile: 37.6

This is a below-median EPSS score — only 37.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-6hg6-v5c8-fphq

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml