log4net is vulnerable to Improper Neutralization of Null Byte / Truncation leading to log record hiding
50
CVE Score
Medium
Improper Neutralization of Null Byte / Truncation leading to log record hiding
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.
Upgrade the log4net library to the patch version.
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.
1.2.10 - 3.4.0
Fixed in 3.5.0log4net is vulnerable to Improper Neutralization of Null Byte / Truncation leading to log record hiding 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.