CVE-2026-129512: Apache log4net: AdoNetAppender loses an event whose text the database cannot store

Published Nov 17, 2026
·
Updated

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.

Affected Software

1 affected component
Apache log4net>=1.2.9<3.6.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.6.0

Event History

Nov 17, 2026
CVE Published
via MITRE·10:14 PM
Data Sourced
via MITRE·10:14 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using Apache log4net versions from 1.2.9 before 3.6.0 and configuring AdoNetAppender to write log events to a database are affected. Databases that reject NUL characters or unpaired UTF-16 surrogates, such as PostgreSQL, can cause the affected event to be lost.

2

What does an attacker need to exploit it?

A party needs to be able to cause a NUL character or unpaired UTF-16 surrogate to reach text included in a log message. No authentication or user interaction is required according to the supplied vector.

3

What is the impact on logging?

The database rejects the insert and the associated log event is lost, allowing suppression of that event from the database-backed log. Only the first such loss per appender is reported.

4

What should teams do if they use the affected appender?

Upgrade Apache log4net to version 3.6.0, which fixes the issue. Until upgrading, treat database logging failures involving unsupported text values as potential lost events and account for the fact that only the first loss per appender is reported.

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