---
title: "CVE-2026-40021"
canonical_url: "https://pkgseek.com/security/CVE-2026-40021"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-40021

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 ca…

CVE-2026-40021 严重级别为 MEDIUM (5.3)，共索引 17 条受影响软件包构建记录，涉及 2 个发行版。

- **级别 / 评分**: MEDIUM (5.3)
- **受影响构建数**: 17
- **涉及发行版**: 2
- **已标明修复版本发行版**: Fedora

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | liblog4net1.2-cil | 1.2.10+dfsg-9 | — |
| Debian | trixie | liblog4net-cil-dev | 1.2.10+dfsg-9 | — |
| Fedora | 43 | log4net | 2.0.8-23.fc43 | 3.5.0-1.fc43 |
| Fedora | 43 | log4net-devel | 2.0.8-23.fc43 | 3.5.0-1.fc43 |
| Fedora | 43 | nant | 1:0.92-40.fc43 | 1:0.92-43.fc43 |
| Fedora | 43 | nant-devel | 1:0.92-40.fc43 | 1:0.92-43.fc43 |
| Fedora | 43 | nant-docs | 1:0.92-40.fc43 | 1:0.92-43.fc43 |
| Fedora | 44 | log4net | 2.0.8-24.fc44 | 3.5.0-1.fc44 |
| Fedora | 44 | log4net-devel | 2.0.8-24.fc44 | 3.5.0-1.fc44 |
| Fedora | 44 | nant | 1:0.92-41.fc44 | 1:0.92-43.fc44 |
| Fedora | 44 | nant-devel | 1:0.92-41.fc44 | 1:0.92-43.fc44 |
| Fedora | 44 | nant-docs | 1:0.92-41.fc44 | 1:0.92-43.fc44 |
| Fedora | 45 | log4net | 2.0.8-25.fc45 | 3.5.0-1.fc45 |
| Fedora | 45 | log4net-devel | 2.0.8-25.fc45 | 3.5.0-1.fc45 |
| Fedora | 45 | nant | 1:0.92-42.fc45 | 1:0.92-43.fc45 |
| Fedora | 45 | nant-devel | 1:0.92-42.fc45 | 1:0.92-43.fc45 |
| Fedora | 45 | nant-docs | 1:0.92-42.fc45 | 1:0.92-43.fc45 |
