Lucene search
K

CVE-2026-40021 Apache Log4net: Silent log event loss in XmlLayout and XmlLayoutSchemaLog4J due to unescaped XML 1.0 forbidden characters

🗓️ 10 Apr 2026 15:44:17Reported by apacheType 
cvelist
 cvelist
🔗 www.cve.org👁 25 Views

Log4net pre-3.3.0 fails to sanitize XML forbidden characters in MDC and identity fields, causing silent log loss.

Related
Affected
Refs
[
  {
    "collectionURL": "https://www.nuget.org/packages",
    "cpes": [
      "cpe:2.3:a:apache:log4net:*:*:*:*:*:*:*:*"
    ],
    "defaultStatus": "unaffected",
    "packageName": "log4net",
    "packageURL": "pkg:nuget/log4net",
    "product": "Apache Log4net",
    "vendor": "Apache Software Foundation",
    "versions": [
      {
        "lessThan": "3.3.0",
        "status": "affected",
        "version": "0",
        "versionType": "nuget"
      }
    ]
  }
]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation