Intel

AIKIDO-2026-325410

log4net is vulnerable to Improper Neutralization of Null Byte causing debug-output truncation

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

50

CVE Score

Medium

Improper Neutralization of Null Byte causing debug-output truncation

Are you affected? Scan for Free

TL;DR

log4net's OutputDebugStringAppender.Append passes the string rendered by the configured layout to the native OutputDebugString API. Because that API treats the string as null-terminated, a NUL in the rendered logging event ends the debug output at that point, so trailing fields and exception text after the NUL are dropped. The fix escapes each NUL through NativeStringEscape.EscapeNulCharacters before the native call.

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 OutputDebugStringAppender on Windows.

Package

Versions

1.2.10 - 3.4.0

Fixed in 3.5.0

Background info

log4net is vulnerable to Improper Neutralization of Null Byte causing debug-output truncation 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