Intel

AIKIDO-2026-496232

log4net is vulnerable to Improper Neutralization of Null Byte / Truncation leading to log record hiding

CVE-2026-105239Published Oct 15, 2026
October 15, 2026

50

CVE Score

Medium

Improper Neutralization of Null Byte / Truncation leading to log record hiding

Are you affected? Scan for Free

TL;DR

Apache log4net's EventLogAppender.Append renders a logging event and truncates that text only by character length before calling the Windows EventLog.WriteEntry API, with no handling of embedded NUL characters. Any NUL character present in content that reaches the layout-rendered log message (for example from logged exception text or application data forwarded into the log statement) causes the underlying Windows Event Log API to terminate the stored record at that NUL, silently discarding everything the layout rendered afterward, including trailing fields. This occurs whenever EventLogAppender is configured on Windows. The fix escapes each NUL in PrepareEventText through NativeStringEscape.EscapeNulCharacters before the size limit and WriteEntry.

How do I fix this?

Upgrade the log4net library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you have configured the EventLogAppender to write log output to the Windows Event Log.

Package

Versions

1.2.10 - 3.4.0

Fixed in 3.5.0

Background info

log4net is vulnerable to Improper Neutralization of Null Byte / Truncation leading to log record hiding in versions 1.2.10 - 3.4.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea