{"id":"CVE-2026-40021","revision":null,"records":[{"revision":"eefefdb6190442c1bf854f72a547bcd1","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-40021","aliases":[],"title":"Apache Log4net: Silent log event loss in XmlLayout and XmlLayoutSchemaLog4J due to unescaped XML 1.0 forbidden characters","description":"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.\n\nAn attacker who can influence any of these fields can exploit this to suppress individual log records, impairing audit trails and detection of malicious activity.\n\nUsers are advised to upgrade to Apache Log4net 3.3.0, which fixes this issue.","state":0,"publishedAt":"2026-04-10T15:44:17.451+00:00","modifiedAt":"2026-04-10T17:35:01.228+00:00","affected":[{"ecosystem":"NuGet","name":"log4net","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://www.nuget.org/packages\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:apache:log4net:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageName\": \"log4net\",\n                    \"packageURL\": \"pkg:nuget/log4net\",\n                    \"product\": \"Apache Log4net\",\n                    \"vendor\": \"Apache Software Foundation\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"3.3.0\",\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"versionType\": \"nuget\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N","score":6.3,"severity":"MEDIUM"}],"references":["https://github.com/apache/logging-log4net/pull/280","https://logging.apache.org/security.html#CVE-2026-40021","https://logging.apache.org/cyclonedx/vdr.xml","https://logging.apache.org/log4net/manual/configuration/layouts.html","https://lists.apache.org/thread/q8otftjswhk69n3kxslqg7cobr0x4st7"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-40021","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-40021","identifiers":["CVE-2026-40021"]},"retained":false,"historicalAffected":[]},{"revision":"0762e8deb97a4d72849dd1c6f92bb2cc","observedAt":"2026-10-28T05:00:35.764+00:00","statement":{"source":"euvd","id":"EUVD-2026-21488","aliases":["CVE-2026-40021","GHSA-4f7c-pmjv-c25w"],"title":"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.…","description":"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.\n\nAn attacker who can influence any of these fields can exploit this to suppress individual log records, impairing audit trails and detection of malicious activity.\n\nUsers are advised to upgrade to Apache Log4net 3.3.0, which fixes this issue.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N","score":6.3,"severity":null}],"references":["https://github.com/apache/logging-log4net/pull/280","https://logging.apache.org/security.html#CVE-2026-40021","https://logging.apache.org/cyclonedx/vdr.xml","https://logging.apache.org/log4net/manual/configuration/layouts.html","https://lists.apache.org/thread/q8otftjswhk69n3kxslqg7cobr0x4st7"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-21488","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Apr 10, 2026, 3:44:17 PM","dateUpdated":"Apr 10, 2026, 5:35:01 PM"},"relatedAdvisories":[{"id":"WID-SEC-W-2026-1054","title":"Apache log4net: Schwachstelle ermöglicht Manipulation von Dateien","vulnerabilityIds":["CVE-2026-40021"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-21488","identifiers":["EUVD-2026-21488","CVE-2026-40021","GHSA-4f7c-pmjv-c25w"]},"retained":false,"historicalAffected":[]},{"revision":"72109a10786c40fd80ea5896e9fe43df","observedAt":"2026-10-27T10:09:56.341+00:00","statement":{"source":"nvd","id":"CVE-2026-40021","aliases":[],"title":"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.…","description":"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.\n\nAn attacker who can influence any of these fields can exploit this to suppress individual log records, impairing audit trails and detection of malicious activity.\n\nUsers are advised to upgrade to Apache Log4net 3.3.0, which fixes this issue.","state":0,"publishedAt":"2026-04-10T16:16:32.42+00:00","modifiedAt":"2026-10-26T21:10:00.17+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security@apache.org · Secondary","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":6.3,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/apache/logging-log4net/pull/280","https://lists.apache.org/thread/q8otftjswhk69n3kxslqg7cobr0x4st7","https://logging.apache.org/cyclonedx/vdr.xml","https://logging.apache.org/log4net/manual/configuration/layouts.html","https://logging.apache.org/security.html#CVE-2026-40021","http://www.openwall.com/lists/oss-security/2026/04/10/11"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40021","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-116"],"productCriteria":["cpe:2.3:a:apache:log4net:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-04-10T16:16:32.420","lastModified":"2026-10-26T21:10:00.170"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-40021","identifiers":["CVE-2026-40021"]},"retained":false,"historicalAffected":[]},{"revision":"fbe59d40e6064223a174c3cf648ca1fa","observedAt":"2026-10-23T16:01:25.029+00:00","statement":{"source":"osv","id":"GHSA-4f7c-pmjv-c25w","aliases":["CVE-2026-40021"],"title":"Apache Log4net: Silent log event loss in XmlLayout and XmlLayoutSchemaLog4J due to unescaped XML 1.0 forbidden characters","description":"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.\n\nAn attacker who can influence any of these fields can exploit this to suppress individual log records, impairing audit trails and detection of malicious activity.\n\nUsers are advised to upgrade to Apache Log4net 3.3.0, which fixes this issue.","state":0,"publishedAt":"2026-04-10T18:31:18+00:00","modifiedAt":"2026-05-05T16:01:27.34256+00:00","affected":[{"ecosystem":"NuGet","name":"log4net","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.3.0"}]}],"versions":["1.2.10","1.2.11","2.0.0","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.1.0","3.2.0"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2026-40021","https://github.com/apache/logging-log4net/pull/280","https://github.com/apache/logging-log4net","https://lists.apache.org/thread/q8otftjswhk69n3kxslqg7cobr0x4st7","https://logging.apache.org/cyclonedx/vdr.xml","https://logging.apache.org/log4net/manual/configuration/layouts.html","https://logging.apache.org/security.html#CVE-2026-40021","http://www.openwall.com/lists/oss-security/2026/04/10/11"],"sourceUrl":"https://github.com/advisories/GHSA-4f7c-pmjv-c25w","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4f7c-pmjv-c25w","identifiers":["GHSA-4f7c-pmjv-c25w","CVE-2026-40021"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-29T23:49:06.1350665+00:00","complete":true,"records":1764,"lastAttemptAt":"2026-10-29T23:49:06.1350665+00:00","lastSuccessAt":"2026-10-29T23:49:06.2844873+00:00","error":null,"lastVerifiedAt":"2026-10-29T23:49:06.2844884+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-b1f3f808444d5ea9fdb7335a1abbcb8866c29481d9b152338762db9defc61d11-c8144dbcf1ff013ccd59a33c49a55e7bff2163114eaa4f41ce2f01d909d79dd7","complete":true,"records":416807,"lastAttemptAt":"2026-10-29T23:49:05.5749469+00:00","lastSuccessAt":"2026-10-29T23:49:05.3696065+00:00","error":null,"lastVerifiedAt":"2026-10-29T23:49:05.5749469+00:00","snapshotPublishedAt":"2026-10-29T23:27:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a2c37958e6754551b22e3a8f19518225","complete":false,"records":13504,"lastAttemptAt":"2026-10-29T23:59:28.8844256+00:00","lastSuccessAt":"2026-10-29T23:59:28.88+00:00","error":"6 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-29T23:59:28.88+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13164,"expectedIdentifiers":13587,"failedIdentifiers":6},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-29T23:49:06.1350665+00:00","complete":true,"records":1094,"lastAttemptAt":"2026-10-29T23:49:06.1350665+00:00","lastSuccessAt":"2026-10-29T23:49:06.2857841+00:00","error":null,"lastVerifiedAt":"2026-10-29T23:49:06.2857847+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-c39f89b50d5243318487ad216daf7ffb","complete":true,"records":13527,"lastAttemptAt":"2026-10-29T23:49:08.5500965+00:00","lastSuccessAt":"2026-10-29T22:50:37.74+00:00","error":null,"lastVerifiedAt":"2026-10-29T22:50:37.74+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13587,"expectedIdentifiers":13587,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-9016081e9e88f5929902343d85df87c5c4a1486b10ab07bc6c4f53f98f358871","complete":true,"records":9806,"lastAttemptAt":"2026-10-29T23:49:05.9178443+00:00","lastSuccessAt":"2026-10-29T17:17:25.9359141+00:00","error":null,"lastVerifiedAt":"2026-10-29T23:49:05.9178443+00:00","snapshotPublishedAt":"2026-10-29T16:48:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-10-29T23:49:05.6341308+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-10-29T23:49:05.6341308+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-88b10711e708187a55cc7c2190d0fa202709e42b9f2b044668b7ee55f396c732","complete":true,"records":3014,"lastAttemptAt":"2026-10-29T23:49:06.0257211+00:00","lastSuccessAt":"2026-10-29T18:29:26.4063617+00:00","error":null,"lastVerifiedAt":"2026-10-29T23:49:06.0257211+00:00","snapshotPublishedAt":"2026-10-29T17:35:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-ec5b13e78c39945726a720832da7660d2774969f16e2a34f99460c135811abd5","complete":true,"records":230948,"lastAttemptAt":"2026-10-29T23:49:05.8091746+00:00","lastSuccessAt":"2026-10-29T22:50:35.0693267+00:00","error":null,"lastVerifiedAt":"2026-10-29T23:49:05.8091746+00:00","snapshotPublishedAt":"2026-10-29T22:33:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}