log4net is vulnerable to Improper Encoding or Escaping of Output
53
CVE Score
Medium
Improper Encoding or Escaping of Output
Apache log4net's RemoteSyslogAppender formats a log event into a syslog message and, in AppendMessage, iterates each character of the rendered message deciding what to send over the wire to the configured syslog receiver. The input is the application's log message text, supplied by whatever calling code logs through a logger configured with RemoteSyslogAppender; by default log4net does not configure this appender itself. Before the fix, any character outside the visible-ASCII range 0x20-0x7E (including tabs, other control characters, and all non-ASCII text) was simply skipped and never added to the output buffer, so such content vanished from the transmitted syslog record without any indication of truncation. The fix in version 3.5.0 changes this branch to append an escaped \\uXXXX representation of the character instead of dropping it, preserving the fact that non-standard content was present.
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 have configured RemoteSyslogAppender to forward application log messages to a syslog server.
1.2.10 - 3.4.0
Fixed in 3.5.0log4net is vulnerable to Improper Encoding or Escaping of Output 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.