製品・ソフトウェアに関する情報
Apache Software FoundationのApache log4netにおけるエンコードおよびエスケープに関する脆弱性
Title Apache Software FoundationのApache log4netにおけるエンコードおよびエスケープに関する脆弱性
Summary

Apache Log4netのXmlLayout(https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list)およびXmlLayoutSchemaLog4J(https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list)は、バージョン3.3.0以前において、MDCプロパティのキーと値、および攻撃者が影響を与える可能性のあるidentityフィールドに含まれるXML 1.0仕様(https://www.w3.org/TR/xml/#charsets)で禁止されている文字を適切にサニタイズできません。このため、シリアライズ中に例外が発生し、影響を受けたログイベントが静かに失われます。これらのフィールドのいずれかに影響を与えられる攻撃者は、この脆弱性を悪用して個別のログレコードを抑制でき、その結果、監査記録や悪意ある活動の検出が妨げられます。ユーザーはこの問題を修正したApache Log4net 3.3.0へアップグレードすることを推奨されます。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 10, 2026, midnight
Registration Date April 24, 2026, 11:42 a.m.
Last Update April 24, 2026, 11:42 a.m.
CVSS3.0 : 警告
Score 5.3
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Affected System
Apache Software Foundation
Apache log4net 3.3.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月24日]
  掲載
April 24, 2026, 11:42 a.m.

NVD Vulnerability Information
CVE-2026-40021
Summary

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.

Publication Date April 11, 2026, 1:16 a.m.
Registration Date April 15, 2026, 11:36 a.m.
Last Update April 22, 2026, 11:13 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:apache:log4net:*:*:*:*:*:*:*:* 3.3.0
Related information, measures and tools
Common Vulnerabilities List