Vulnerability in Apache Log4net

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…

EPSS: 0.007 (50.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-40021?
CVE-2026-40021 is a medium-severity vulnerability in Apache Log4net, classified under Improper Encoding or Escaping of Output. CVSS score: 5.3/10. Published 2026-04-10.
How severe is CVE-2026-40021?
Medium severity. CVSS v3 base score is 5.3 out of 10.