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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-06 · Modified: 2026-10-07
- Aliases: UBUNTU-CVE-2026-105240, DEBIAN-CVE-2026-105240
- Record: https://cvemate.com/vulnerability/CVE-2026-105240 · JSON: https://cvemate.com/vulnerability/CVE-2026-105240/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.807%, percentile 58.151%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache log4net: ≥ 1.2.9, \< 3.5.0 \| ≥ 02e1e115435888485f2e28b414d267e39e799e07, \< 6046fe9d7f353b49fe995361c071ec2eea8f7ef6
- apache log4net: ≥ 1.2.9, \< 3.5.0
- debian log4net (Debian): All versions (No fix recorded)
- ubuntu log4net (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/apache/logging-log4net/pull/315>
- <https://github.com/apache/logging-log4net/commit/6046fe9d7f353b49fe995361c071ec2eea8f7ef6>
- <https://lists.apache.org/thread.html/gyw2d4ppy82t1vlpdknkfd1nmzp21z17>
- <http://www.openwall.com/lists/oss-security/2026/10/07/18>
- <https://ubuntu.com/security/CVE-2026-105240>
- <https://www.cve.org/CVERecord?id=CVE-2026-105240>
- <https://lists.apache.org/thread/gyw2d4ppy82t1vlpdknkfd1nmzp21z17>
- <https://security-tracker.debian.org/tracker/CVE-2026-105240>

---

Data as of 2026-12-05T06:45:41.167Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
