log4net: Apache Log4net's XmlLayout https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list and Xm...
CVE-2026-40021 is fixed in 5 products on 1 platform, first by DEBIAN-CVE-2026-40021, released April 10, 2026. It is not reported as exploited. Patch Radar priority: Routine.
Apache Log4net's XmlLayout https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list and XmlLayoutSchemaLog4J https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list , in versions before 3.3.0, fail to sanitize characters forbidden by the XML 1.0 specification https://www.w3.org/TR/xml/#charsets 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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| log4net · Debian 14 | 1.2.10+dfsg-10 | DEBIAN-CVE-2026-40021 | Apr 10, 2026 |
| log4net · Fedora 43 | 3.5.0-1.fc43 | FEDORA-2026-588BC7E01C | Oct 7, 2026 |
| log4net-devel · Fedora 43 | 3.5.0-1.fc43 | FEDORA-2026-588BC7E01C | Oct 7, 2026 |
| nant · Fedora 43 | 1:0.92-43.fc43 | FEDORA-2026-588BC7E01C | Oct 7, 2026 |
| nant-devel · Fedora 43 | 1:0.92-43.fc43 | FEDORA-2026-588BC7E01C | Oct 7, 2026 |
| nant-docs · Fedora 43 | 1:0.92-43.fc43 | FEDORA-2026-588BC7E01C | Oct 7, 2026 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.