CVE-2026-105240: Apache log4net: NUL character truncates OutputDebugStringAppender records

Published Oct 6, 2026
·
Updated

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.

Affected Software

1 affected component
Apache log4net>=1.2.9<3.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache log4net to a version that resolves this vulnerability.

    Fixed in 3.5.0

Event History

Oct 6, 2026
CVE Published
via MITRE·07:47 PM
Data Sourced
via MITRE·07:47 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Only Windows applications that use log4net's OutputDebugStringAppender are affected. The affected log4net versions range from 1.2.9 up to, but not including, 3.5.0.

2

What must an attacker be able to do?

An attacker needs to supply data that reaches a logged message and includes a NUL character. That character can cause the debug output record to end early, hiding subsequently rendered content such as exception text and trailing fields.

3

What should teams do to remediate this issue?

Upgrade Apache log4net to version 3.5.0. This version fixes the truncation issue.

4

How can we assess whether our application is exposed?

Check whether the application runs on Windows, uses OutputDebugStringAppender, and has a log4net version earlier than 3.5.0 but no earlier than 1.2.9. Applications not using that appender are not affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203