The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-34477

CVE-2026-34477: Apache Log4j TLS Bypass Vulnerability

CVE-2026-34477 is a TLS hostname verification bypass in Apache Log4j Core that enables man-in-the-middle attacks on SMTP, Socket, and Syslog appenders. This article covers technical details, affected versions, and mitigation.

Published: April 17, 2026

CVE-2026-34477 Overview

CVE-2026-34477 is a certificate validation bypass vulnerability in Apache Log4j Core that represents an incomplete fix for CVE-2025-68161. The vulnerability occurs because hostname verification was only enforced when enabled via the log4j2.sslVerifyHostName system property, but not when configured through the verifyHostName attribute of the <Ssl> element in Log4j configuration files.

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. This allows network-based attackers to potentially perform man-in-the-middle attacks against applications using vulnerable Log4j appenders.

Critical Impact

Network attackers can intercept TLS-encrypted log traffic through man-in-the-middle attacks when SMTP, Socket, or Syslog appenders are configured with SSL/TLS, potentially exposing sensitive application data transmitted in log messages.

Affected Products

  • Apache Log4j Core versions 2.12.0 through 2.25.3
  • Applications using SMTP, Socket, or Syslog appenders with TLS configured via <Ssl> element
  • Systems where verifyHostName attribute is relied upon for hostname verification

Discovery Timeline

  • 2026-04-10 - CVE CVE-2026-34477 published to NVD
  • 2026-04-13 - Last updated in NVD database

Technical Details for CVE-2026-34477

Vulnerability Analysis

This vulnerability (CWE-297: Improper Validation of Certificate with Host Mismatch) stems from an incomplete security fix in Apache Log4j Core. The original vulnerability CVE-2025-68161 was partially addressed, but the patch failed to account for an alternative configuration method.

The root issue is that Log4j Core supports two methods for enabling hostname verification in TLS connections: the log4j2.sslVerifyHostName system property and the verifyHostName XML attribute within <Ssl> configuration elements. The previous fix only addressed the system property path, leaving the XML attribute configuration completely non-functional.

When the verifyHostName attribute is set to true in the SSL configuration, Log4j silently ignores this setting and proceeds with TLS connections without verifying that the server's certificate hostname matches the expected destination. This creates a false sense of security for administrators who believe they have properly configured hostname verification.

Root Cause

The vulnerability exists because the hostname verification logic in Log4j Core's SSL implementation contains a code path that only checks the log4j2.sslVerifyHostName system property. The verifyHostName attribute from the <Ssl> XML element is parsed but never actually used to enable hostname verification during TLS handshakes. This represents a classic case of dead code where configuration is accepted but not honored, creating a dangerous security gap.

Attack Vector

A network-based attacker can exploit this vulnerability by performing a man-in-the-middle attack when all of the following conditions are met:

  1. An SMTP, Socket, or Syslog appender is in use
  2. TLS is configured via a nested <Ssl> element
  3. 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

The attacker positions themselves between the application and the log destination, presenting a valid certificate for a different domain. Because hostname verification is not enforced, the Log4j appender accepts the mismatched certificate and establishes the TLS connection with the attacker's system, allowing interception of all logged data.

Note: The HTTP appender is not affected as it uses a separate verifyHostname attribute that was not subject to this bug and verifies hostnames by default.

Detection Methods for CVE-2026-34477

Indicators of Compromise

  • Review Log4j configuration files for <Ssl> elements using the verifyHostName attribute without the corresponding system property
  • Check for unexpected TLS certificate warnings or errors in application logs that may indicate MITM attempts
  • Monitor network traffic for TLS connections to log destinations that show certificate hostname mismatches

Detection Strategies

  • Audit all Log4j Core versions in use across the environment to identify instances of 2.12.0 through 2.25.3
  • Scan configuration files for SMTP, Socket, and Syslog appenders that include <Ssl> configuration elements
  • Implement network monitoring to detect certificate anomalies on connections to logging infrastructure
  • Use software composition analysis (SCA) tools to identify vulnerable Log4j Core dependencies

Monitoring Recommendations

  • Enable verbose TLS logging in Java applications to capture certificate verification details
  • Deploy network intrusion detection systems (NIDS) to monitor for potential MITM attacks on logging traffic
  • Establish baseline logging traffic patterns and alert on deviations that could indicate interception

How to Mitigate CVE-2026-34477

Immediate Actions Required

  • Upgrade to Apache Log4j Core 2.25.4 or later, which correctly implements hostname verification for the verifyHostName attribute
  • As a temporary measure, enable hostname verification via the log4j2.sslVerifyHostName system property instead of the XML attribute
  • Review all Log4j configurations using SMTP, Socket, or Syslog appenders with TLS to identify affected deployments
  • Isolate network segments where logging traffic flows to reduce MITM attack surface

Patch Information

Apache has released Log4j Core 2.25.4 to address this vulnerability. The fix ensures that the verifyHostName attribute in <Ssl> configuration elements is properly honored during TLS connection establishment. Users should upgrade to this version or later to fully remediate the issue.

For additional technical details, refer to the Apache Security Advisory, the GitHub Pull Request, and the Apache Mailing List announcement.

Workarounds

  • Set the log4j2.sslVerifyHostName system property to true via JVM arguments: -Dlog4j2.sslVerifyHostName=true
  • Use network-level controls such as mutual TLS (mTLS) with client certificate authentication for logging connections
  • Consider using the HTTP appender as an alternative, which is not affected by this vulnerability
  • Implement network segmentation to ensure logging traffic does not traverse untrusted network segments
bash
# Enable hostname verification via system property as workaround
java -Dlog4j2.sslVerifyHostName=true -jar your-application.jar

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLog4j

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS 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
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-297
  • Technical References
  • GitHub Pull Request

  • Apache Mailing List Thread

  • CycloneDX VDR Specification

  • Apache Log4j Network Appender Config

  • Apache Security Advisory CVE-2026-34477
  • Latest CVEs
  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer Vulnerability

  • CVE-2026-31745: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English