Skip to content
VulniPulse
Medium6.3Apache Software Foundation

CVE-2026-40021: Apache Log4net's XmlLayout and

This Apache advisory covers CVE-2026-40021 in Apache Log4net.

Open the Apache advisory

Key facts

Vendor rating
Medium, CVSS 6.3
CISA KEV
Not listed (catalogue checked )
Affected
3.3.0
Fixed in
3.3.0
Source published
Source revised
Listed by VulniPulse

Compiled by VulniPulse from the linked sources. How records are collected and checked.

Affected products & platforms

Apache Software FoundationLog4j

Description

Apache Log4net's XmlLayout and XmlLayoutSchemaLog4J, in versions before 3.3.0, fail to sanitize characters forbidden by the XML 1.0 specification in MDC property keys and values, as well as the identity field that may carry attacker-influenced data. This causes an exception during serialization and the silent loss of the affected log event.

An attacker who can influence any of these fields can exploit this to suppress individual log records, impairing audit trails and detection of malicious activity.

Users are advised to upgrade to Apache Log4net 3.3.0, which fixes this issue.

Text from the source record.

Affected versions
  • 3.3.0

Official advisory · high-confidence parse· fetched ·verify at source

How to fix CVE-2026-40021

Upgrade to a fixed release named by Apache:

  • 3.3.0

Apache Software Foundation advisories, April 2026All Apache Software Foundation advisories

Get an email when Apache publishes the next one.

See Apache's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).

Alert me about Apache

iPhone and Android apps · New on the App Store

Monitor future Apache Software Foundation CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.