Skip to main content

CVE-2026-105240: CWE-158 Improper Neutralization of Null Byte or NUL Character in Apache Software Foundation Apache log4net

0
Medium
VulnerabilityCVE-2026-105240cvecve-2026-105240cwe-158
Published: 10/06/2026 (10/06/2026, 19:47:44 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache log4net

Description

CVE-2026-105240 is a medium severity vulnerability in Apache log4net affecting versions from 1.2.9 up to but not including 3.5.0. It involves improper neutralization of the null byte character in the OutputDebugStringAppender, causing debug output records to be truncated at the null byte. This allows data containing a null byte to hide the remainder of the log message, including exception details and trailing fields. Only Windows applications using OutputDebugStringAppender are affected. The issue is fixed in version 3.5.0.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected software

Apache Software Foundation

Apache log4net

Affected versions
>=1.2.9 <3.5.0

Apache Software Foundation

Apache log4net

log4net
pkg:nuget/log4net
Affected versions
>=1.2.9 <3.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/06/2026, 20:19:18 UTC

Technical Analysis

This vulnerability in Apache log4net's OutputDebugStringAppender occurs because a null byte in logged content prematurely terminates the debug output record. As a result, any layout-rendered content after the null byte, such as exception text and trailing fields, is lost silently. This can be exploited by an attacker who can inject data containing a null byte into log messages, effectively hiding parts of the log record. The flaw affects Apache log4net versions from 1.2.9 up to but not including 3.5.0 and only impacts Windows applications using OutputDebugStringAppender. The vendor fixed this issue in version 3.5.0.

Potential Impact

The vulnerability allows an attacker who can influence log message content to truncate log entries at a null byte, hiding subsequent log information such as exception details. This can impair forensic analysis and troubleshooting by concealing relevant log data. There is no direct impact on confidentiality or availability, but integrity of log records is affected. The vulnerability is limited to Windows environments using the OutputDebugStringAppender in affected log4net versions.

Mitigation Recommendations

Users should upgrade Apache log4net to version 3.5.0 or later, where this issue is fixed. No other mitigations are specified. Since this is a software vulnerability with an official fix, applying the update is the recommended remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-10-04T16:20:07.533Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ac5544a2cdf04f656d9e129

Added to database: 10/06/2026, 20:04:26 UTC

Last enriched: 10/06/2026, 20:19:18 UTC

Last updated: 10/06/2026, 20:19:18 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses