Skip to main content
CVE-2026-40021VulnerabilityPublished Updated

Apache Log4net's XmlLayout https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list and

Affects log4netSource GCVE Database

0
Compare
Authoritative record:CVE-2026-40021· Medium 6.3

Not known to be exploited · CVSS 6.3 Medium.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 57% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10log4netpkg:deb/ubuntu/log4net?arch=source&distro=stonkingOther threatsAffected
  • =1.2.10+dfsg-9build1
  • =1.2.10+dfsg-10
Fixed in–
Ubuntu 26.04 LTSlog4netpkg:deb/ubuntu/log4net?arch=source&distro=resoluteOther threatsAffected
  • =1.2.10+dfsg-9
  • =1.2.10+dfsg-9build1
Fixed in–
Ubuntu 25.10log4netpkg:deb/ubuntu/log4net?arch=source&distro=questingOther threatsAffected
  • =1.2.10+dfsg-9
Fixed in–
Ubuntu 24.04 LTSlog4netpkg:deb/ubuntu/log4net?arch=source&distro=nobleOther threatsAffected
  • =1.2.10+dfsg-8
  • =1.2.10+dfsg-9
Fixed in–
Ubuntu 22.04 LTSlog4netpkg:deb/ubuntu/log4net?arch=source&distro=jammyOther threatsAffected
  • =1.2.10+dfsg-8
Fixed in–
Ubuntu 20.04 LTSlog4netpkg:deb/ubuntu/log4net?arch=source&distro=focalOther threatsAffected
  • =1.2.10+dfsg-7
  • =1.2.10+dfsg-7ubuntu0.20.04.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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. 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.

References

Community reviews

Loading reviews…