CVE-2026-105240Apache log4net: NUL character truncates OutputDebugStringAppender records
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | log4net | Fix pending | UBUNTU-CVE-2026-105240 | |
| Ubuntu 26.04 | log4net | Under investigation | UBUNTU-CVE-2026-105240 | |
| Ubuntu 24.04 | log4net | Under investigation | UBUNTU-CVE-2026-105240 | |
| Ubuntu 22.04 | log4net | Under investigation | UBUNTU-CVE-2026-105240 | |
| Ubuntu 20.04 | log4net | Fix pending | UBUNTU-CVE-2026-105240 | |
| Ubuntu 18.04 | log4net | Fix pending | UBUNTU-CVE-2026-105240 | |
| Ubuntu 16.04 | log4net | Fix pending | UBUNTU-CVE-2026-105240 | |
| Debian 14 | log4net | Fix pending | DEBIAN-CVE-2026-105240 | |
| Debian 13 | log4net | Fix pending | DEBIAN-CVE-2026-105240 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache log4net: affected: 1.2.9 to before 3.5.0; fixed in
3.5.0 - Apache Software Foundation Apache log4net: affected: 02e1e115435888485f2e28b414d267e39e799e07 to before 6046fe9d7f353b49fe995361c071ec2eea8f7ef6; fixed in
6046fe9d7f353b49fe995361c071ec2eea8f7ef6
Vendor advisories:
- https://github.com/apache/logging-log4net/pull/315 (patch)
- https://github.com/apache/logging-log4net/commit/6046fe9d7f353b49fe995361c071ec2eea8f7ef6 (patch)
- https://lists.apache.org/thread.html/gyw2d4ppy82t1vlpdknkfd1nmzp21z17 (vendor-advisory)
References
- https://github.com/apache/logging-log4net/pull/315
- https://github.com/apache/logging-log4net/commit/6046fe9d7f353b49fe995361c071ec2eea8f7ef6
- https://lists.apache.org/thread.html/gyw2d4ppy82t1vlpdknkfd1nmzp21z17
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.