log4net AdoNetAppender can drop events containing NUL (CVE-2026-129512)
Apache rates the flaw moderate, CVSS 3.1 5.3, with low integrity impact and no confidentiality or availability loss.
NUL handling in Apache log4net AdoNetAppender drops log events
Apache log4net's AdoNetAppender binds text parameters unchanged, so a NUL byte or unpaired UTF-16 surrogate is sent to the database as-is. Anyone whose data is written into a log message can trigger this over the network with no authentication. Databases that reject those values, such as PostgreSQL, drop the insert and the event is lost; only the first loss per appender is reported. Versions from 1.2.9 before 3.6.0 are affected.
What to do: Upgrade Apache log4net to 3.6.0, which fixes NUL and unpaired surrogate handling in AdoNetAppender.
| Product | Affected | Fixed in |
|---|---|---|
| Apache log4net | from 1.2.9 before 3.6.0 | 3.6.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Improper Neutralization of Null Byte or NUL Character vulnerability in the AdoNetAppender of Apache log4net. Text parameters were bound unchanged, so a NUL character or an unpaired UTF-16 surrogate reached the database as it was. A database that refuses such a value, such as PostgreSQL, rejected the insert and the event was lost; only the first such loss per appender was reported. A party whose data reaches a log message could suppress that event. This issue affects Apache log4net: from 1.2.9 before 3.6.0. Users are recommended to upgrade to version 3.6.0, which fixes the issue.
Apache rates the flaw moderate, CVSS 3.1 5.3, with low integrity impact and no confidentiality or availability loss.
Today 2.6K readers · 5.4K views · 357 reads · all time 290K views