Skip to main content

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

MEDIUM

Apache Log4j 1 to Log4j 2 bridge: silent log event loss in Log4j1XmlLayout due to unescaped XML 1.0 forbidden characters

Published April 10, 2026Updated October 26, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.95%). 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-34479 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 Log4j1XmlLayout from the Apache Log4j 1-to-Log4j 2 bridge fails to escape characters forbidden by the XML 1.0 standard, producing malformed XML output. Conforming XML parsers are required to reject documents containing such characters with a fatal error, which may cause downstream log processing systems to drop or fail to index affected records.

Two groups of users are affected:

  • Those using Log4j1XmlLayout directly in a Log4j Core 2 configuration file.
  • Those using the Log4j 1 configuration compatibility layer with org.apache.log4j.xml.XMLLayout specified as the layout class.

Users are advised to upgrade to Apache Log4j 1-to-Log4j 2 bridge version 2.25.4, which corrects this issue.

[!NOTE] The Apache Log4j 1-to-Log4j 2 bridge is deprecated and will not be present in Log4j 3. Users are encouraged to consult the Log4j 1 to Log4j 2 migration guide, and specifically the section on eliminating reliance on the bridge.

Advisory Timeline

  • First published April 10, 2026 (230 days ago).
  • Last revised October 26, 2026 — 199 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.10.0, 2.11.0, 2.11.1, 2.11.2 (+39 more)2.25.4
org.apache.logging.log4j:log4j-core Maven · Affected: 3.0.0-beta1, 3.0.0-beta2Range-based data available

Vulnerability Classification

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

  • CWE-116
    Improper Encoding or EscapingMITRE

CVSS Score Breakdown

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

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

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N

Frequently Asked Questions

What is CVE-2026-34479?
Apache Log4j 1 to Log4j 2 bridge: silent log event loss in Log4j1XmlLayout due to unescaped XML 1.0 forbidden characters. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.8/10).
How do I check if my project is affected by CVE-2026-34479?
CVE-2026-34479 affects org.apache.logging.log4j:log4j-core. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-34479 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.8

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.95%
EPSS percentile: 59.6

This is an above-median EPSS score — 59.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-h383-gmxw-35v2

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml