CVE-2026-40021: Apache Log4net's XmlLayout and
This Apache advisory covers CVE-2026-40021 in Apache Log4net.
- CVE-2026-40021
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
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.
How to fix CVE-2026-40021
Upgrade to a fixed release named by Apache:
- 3.3.0
More Apache Software Foundation advisories
CVE-2026-86336Nov 10, 2026Apache TomEE running on JDK 21 or later skips EJB method authorization checksCVE-2026-86531Nov 10, 2026The embedded OpenEJB HTTP server does not limit the size of incoming request bodiesCVE-2026-87758Nov 10, 2026The remote EJB client does not verifyCVE-2026-97849Nov 10, 2026The embedded Derby network service ignores its configured bind address and listens on allCVE-2026-97867Nov 10, 2026The EJBd remote protocol returns datasource connection details, including databaseCVE-2026-97870Nov 10, 2026When Hessian remoting endpoints are served by the embedded HTTP server, configured
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).
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.