Description
Improper Neutralization of Null Byte or NUL Character vulnerability in the OutputDebugStringAppender of Apache log4net.

A NUL character in logged content ended the debug output record at that point, so everything the layout rendered after it, including exception text and trailing fields, was silently lost. A party whose data reaches a log message could hide the rest of that record. Only applications on Windows that use OutputDebugStringAppender are affected.

This issue affects Apache log4net: from 1.2.9 before 3.5.0.

Users are recommended to upgrade to version 3.5.0, which fixes the issue.
Published: 2026-10-06
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Log Truncation
Action: Patch
AI Analysis

Impact

This vulnerability arises from an improper neutralization of a NUL (null) byte in Apache log4net’s OutputDebugStringAppender. When a log message contains a NUL character, the appender treats it as the end of the record, discarding any data that follows, including exception details and trailing fields. The result is that logs are truncated or silently corrupted, which can hide malicious or sensitive content and interfere with monitoring and troubleshooting. The weakness is a classic CWE‑158 scenario involving improper handling of a null byte.

Affected Systems

The flaw affects the log4net library version 1.2.9 through the pre‑3.5.0 releases. It is limited to Windows applications that use the OutputDebugStringAppender; other operating systems or alternative appenders are unaffected. The product, managed by the Apache Software Foundation, is commonly used by .NET developers for application logging.

Risk and Exploitability

The CVSS score is 5.3, indicating a moderate severity. No EPSS data is available, and the issue has not been listed in the CISA KEV catalog, suggesting limited known exploitation. Attacks would require the ability to inject log content that contains a NUL byte, which may be possible through user input if the application passes untrusted data directly to the logger. The risk is therefore moderate and primarily concerns data integrity and the possibility of concealing sensitive information in logs.

Generated by OpenCVE AI on October 7, 2026 at 00:33 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache log4net to version 3.5.0 or later, which removes the NUL handling flaw.
  • If the OutputDebugStringAppender is not essential in production, disable it or replace it with an alternative appender that does not truncate on NUL bytes.
  • Sanitize log data by stripping or encoding NUL characters before the message is passed to the logger.

Generated by OpenCVE AI on October 7, 2026 at 00:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 09 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:log4net:*:*:*:*:*:*:*:*

Thu, 08 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 07 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
References

Wed, 07 Oct 2026 02:15:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache log4net
Vendors & Products Apache
Apache log4net

Tue, 06 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
Description Improper Neutralization of Null Byte or NUL Character vulnerability in the OutputDebugStringAppender of Apache log4net. A NUL character in logged content ended the debug output record at that point, so everything the layout rendered after it, including exception text and trailing fields, was silently lost. A party whose data reaches a log message could hide the rest of that record. Only applications on Windows that use OutputDebugStringAppender are affected. This issue affects Apache log4net: from 1.2.9 before 3.5.0. Users are recommended to upgrade to version 3.5.0, which fixes the issue.
Title Apache log4net: NUL character truncates OutputDebugStringAppender records
Weaknesses CWE-158
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-07T16:27:16.989Z

Reserved: 2026-10-04T16:20:07.533Z

Link: CVE-2026-105240

cve-icon Vulnrichment

Updated: 2026-10-07T06:11:56.396Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-06T20:17:15.777

Modified: 2026-10-09T15:41:47.250

Link: CVE-2026-105240

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T02:00:11Z

Weaknesses
  • CWE-158

    Improper Neutralization of Null Byte or NUL Character