log4net is vulnerable to Insufficient Logging
53
CVE Score
Medium
Insufficient Logging
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.
Upgrade the log4net package to version 3.5.0 or later.
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.
1.2.10 - 3.4.0
Fixed in 3.5.0log4net is vulnerable to Insufficient Logging in versions 1.2.10 - 3.4.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.