Apache 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-105240
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 23:58 UTC · Revision 1
Source evidence
Apache log4net: NUL character truncates OutputDebugStringAppender records
core-osv · Original sourcePublished 6 Oct 2026, 19:47 UTC
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.
osv:CVE-2026-105240
Complete source record
{
"id": "5435990722e65f014bcfb95f1eee158c6b46218e595e0f5affbde4fe54fb5b43",
"url": "https://osv.dev/vulnerability/CVE-2026-105240",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Apache log4net: NUL character truncates OutputDebugStringAppender records",
"summary": "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.",
"evidence": "osv:CVE-2026-105240",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-105240",
"aliases": [
"CVE-2026-105240"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitbox.apache.org/repos/asf/logging-log4net.git",
"type": "GIT",
"events": [
{
"introduced": "02e1e115435888485f2e28b414d267e39e799e07"
},
{
"fixed": "6046fe9d7f353b49fe995361c071ec2eea8f7ef6"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "02e1e115435888485f2e28b414d267e39e799e07"
},
{
"fixed": "6046fe9d7f353b49fe995361c071ec2eea8f7ef6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
},
{
"repo": "https://github.com/apache/logging-log4net",
"type": "GIT",
"events": [
{
"introduced": "18a96716af733f7c6e4956526acdcc117a1bd461"
},
{
"fixed": "f7794ae187ab2e228e1754cb478568dd305d1b32"
},
{
"fixed": "6046fe9d7f353b49fe995361c071ec2eea8f7ef6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:log4net:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.2.9"
},
{
"fixed": "3.5.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "6046fe9d7f353b49fe995361c071ec2eea8f7ef6"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"rc/3.4.1-preview.1",
"rel/3.4.0",
"rc/3.4.0-rc1",
"rc/3.4.0-preview.1",
"rel/3.3.2",
"rc/3.3.2-rc1",
"rel/3.3.1",
"rc/3.3.1-rc1",
"rel/3.3.0",
"rc/3.3.0-rc1",
"rc/3.2.0-rc1",
"rc/temp",
"rel/3.2.0",
"rc/3.2.0-preview.1",
"rel/3.1.0",
"rc/3.1.0-rc1",
"rel/3.0.4",
"rc/3.0.4-rc1",
"rc/3.0.4-preview.1",
"rel/3.0.3",
"rc/3.0.3-rc1",
"rc/3.0.3-preview.1",
"rel/3.0.2",
"rc/3.0.2-rc1",
"rel/3.0.1",
"rc/3.0.1-rc1",
"rc/3.0.1-preview.2",
"rc/3.0.1-preview.1",
"rel/2.x",
"rel/2.0.17",
"rel/2.0.16",
"rel/2.0.15",
"rel/2.0.14",
"rel/2.0.13",
"rel/2.0.12",
"rel/2.0.11",
"rel/2.0.10"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-105240.json"
}
}
],
"modified": "2026-10-28T02:30:24.630398173Z",
"provider": "osv",
"references": [
"https://nuget.org/packages",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105240.json",
"https://lists.apache.org/thread.html/gyw2d4ppy82t1vlpdknkfd1nmzp21z17",
"https://nvd.nist.gov/vuln/detail/CVE-2026-105240",
"https://github.com/apache/logging-log4net/commit/6046fe9d7f353b49fe995361c071ec2eea8f7ef6",
"https://github.com/apache/logging-log4net/pull/315",
"https://gitbox.apache.org/repos/asf/logging-log4net.git"
],
"provider_metadata": {
"cwe_ids": [
"CWE-158"
],
"cna_assigner": "apache",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105240.json"
}
},
"related_cves": [
{
"value": "CVE-2026-105240",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 491003,
"published_at": "2026-10-06T19:47:44.9+00:00"
}