Skip to main content
Vulnerability Database/CVE-2026-105244

CVE-2026-105244: Apache log4net Information Disclosure Flaw

CVE-2026-105244 is an information disclosure vulnerability in Apache log4net RemoteSyslogAppender where improper encoding removes non-ASCII characters. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105244 Overview

Apache log4net contains an improper output encoding flaw [CWE-116] in the RemoteSyslogAppender component. Versions from 1.2.12 before 3.5.0 silently strip every character outside visible ASCII and space from syslog records rather than escaping them. The behavior collapses non-ASCII text, tabs, and control characters without warning. An attacker who controls data that reaches a log message can craft inputs that render identical to legitimate values after stripping. For example, a username containing a zero-width space can be logged indistinguishably from admin, enabling log forgery and audit evasion.

Critical Impact

Attackers can forge log entries that appear identical to legitimate audit records, undermining log integrity and complicating incident response in applications using RemoteSyslogAppender.

Affected Products

  • Apache log4net 1.2.12 through versions before 3.5.0
  • Applications configured to use the RemoteSyslogAppender component
  • .NET applications relying on log4net for RFC 3164 syslog forwarding

Discovery Timeline

  • 2026-10-06 - CVE-2026-105244 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-105244

Vulnerability Analysis

The vulnerability resides in Apache log4net's RemoteSyslogAppender, which forwards log events to a remote syslog collector over the network. RFC 3164 restricts syslog payloads to visible ASCII and space. The appender enforced this restriction by deleting every disallowed character rather than escaping it. Non-ASCII characters and control bytes such as tabs vanished from the record silently.

This stripping behavior is the root of a log injection and forgery condition. A string such as Schönwetter 你好 arrived at the collector as Schnwetter , and a tab character between two tokens disappeared, merging them into one. Because the removal is silent, downstream log consumers and SIEM detections see no indication that data was altered.

Root Cause

The root cause is improper output encoding [CWE-116]. The appender treated characters it could not transmit as removable rather than escapable. Any value sourced from untrusted input, such as usernames, HTTP headers, or request parameters, inherits this transformation when logged. Two distinct inputs that differ only in stripped characters produce the same recorded output, destroying the one-to-one mapping between source data and audit trail.

Attack Vector

An attacker whose data reaches a log statement can embed zero-width spaces, bidirectional overrides, or control characters inside otherwise innocuous fields. After stripping, the recorded value becomes identical to a privileged or trusted identifier. The attack requires no authentication to log4net itself; it only requires that attacker-controlled text be passed to a logger that writes through RemoteSyslogAppender.

text
+<?xml version="1.0" encoding="UTF-8"?>
+<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns="https://logging.apache.org/xml/ns"
+       xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
+       type="fixed">
+  <issue id="315" link="https://github.com/apache/logging-log4net/pull/315"/>
+  <description format="asciidoc">
+    escape the characters `RemoteSyslogAppender` cannot send instead of deleting them. RFC 3164
+ allows only the visible ASCII characters and space, and everything else was dropped silently, so
+ `Schönwetter 你好` reached the collector as `Schnwetter ` and a tab disappeared
+ from between its neighbours. Such characters are now written as a `\uXXXX` escape, which keeps
+ the record inside the allowed range and readable (audit da18b6fd-f035)
+  </description>
+</entry>

Source: Apache log4net commit 7771706

Detection Methods for CVE-2026-105244

Indicators of Compromise

  • Syslog records containing suspiciously short usernames or identifiers that drop expected non-ASCII characters.
  • Audit entries where whitespace separation between fields is missing or inconsistent, suggesting stripped tabs or control characters.
  • Duplicate recorded identifiers (for example two distinct admin entries) originating from different source IP addresses or sessions.

Detection Strategies

  • Inventory .NET applications and identify log4net versions between 1.2.12 and 3.5.0 that configure RemoteSyslogAppender.
  • Compare authentication source data at the application layer against the forwarded syslog record to detect silent character loss.
  • Review SIEM parsing rules for identity fields and flag records whose decoded length differs from the originating field length.

Monitoring Recommendations

  • Enable application-side logging of raw identity inputs alongside syslog forwarding to establish a reference for comparison.
  • Alert on authentication records where username collisions occur across different session identifiers or source hosts.
  • Monitor log4net package versions in software bill of materials (SBOM) scans and continuous dependency inventories.

How to Mitigate CVE-2026-105244

Immediate Actions Required

  • Upgrade Apache log4net to version 3.5.0 or later across all .NET applications that use RemoteSyslogAppender.
  • Audit historical syslog data for duplicate identifier records that may indicate prior forgery attempts.
  • Validate downstream SIEM content and detection rules account for the previous stripping behavior.

Patch Information

Apache resolved the issue in log4net 3.5.0. The fix changes RemoteSyslogAppender to encode characters outside the RFC 3164 allowed range as \uXXXX escape sequences rather than deleting them. Review the Apache log4net Pull Request #315, the commit 7771706, and the Apache mailing list announcement for complete details.

Workarounds

  • Replace RemoteSyslogAppender with an alternate appender such as UdpAppender or a file-based appender until upgrade is possible.
  • Sanitize or encode untrusted input at the application layer before passing it to log statements, converting non-ASCII characters to safe representations.
  • Restrict which fields from untrusted sources are included in log messages routed through syslog forwarding.
bash
# Update log4net via NuGet to the fixed release
dotnet add package log4net --version 3.5.0

# Verify installed version
dotnet list package | grep -i log4net

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.