Intel

AIKIDO-2026-250078

log4net is vulnerable to Insufficient Logging

CVE-2026-105243Published Oct 21, 2026
October 21, 2026

53

CVE Score

Medium

Insufficient Logging

Are you affected? Scan for Free

TL;DR

The entry point is EventLogAppender.Append(), which is reached whenever an application configured to log to the Windows Event Log writes a logging event; the rendered message text comes from the configured Layout applied to the LoggingEvent. In the affected versions, Append() truncates the rendered text to a fixed maximum size (originally 32000 characters, later a private constant) without subtracting the length of the log name, application/source name, or machine name that the Windows ReportEventW API also counts against its own buffer limit, and it never calls ErrorHandler.Error() to report when truncation or outright record loss occurs; a message long enough once those names are counted causes EventLog.WriteEntry to silently store nothing. The fix adds GetMaxMessageSize(), which computes a budget by subtracting the log name, application name, and machine name lengths from the fixed maximum, and calls ErrorHandler.Error(...) whenever the escaped text had to be truncated, so operators are now notified instead of silently losing the event record.

How do I fix this?

Upgrade the log4net package to version 3.5.0 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and configure log4net's EventLogAppender to write application log entries to the Windows Event Log.

Package

Versions

1.2.10 - 3.4.0

Fixed in 3.5.0

Background info

log4net is vulnerable to Insufficient Logging 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