Skip to main content

Apache log4net EUVDEUVD-2026-128197

| CVE-2026-129512 MEDIUM
Improper Neutralization of Null Byte or NUL Character (CWE-158)
2026-11-17 apache GHSA-qwr2-h49j-j5m8
5.3
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit input containing NUL or lone surrogate
  2. Exploit
    Value bound unchanged into AdoNetAppender parameter
  3. Execution
    PostgreSQL rejects the insert
  4. Impact
    Log event silently suppressed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Metacharacter neutralization
Exploitation Conditions

Requires an application using log4net's AdoNetAppender to write text parameters into a database that rejects NUL characters or invalid/unpaired UTF-16 surrogates - PostgreSQL is named as such a database - and attacker-influenced data must reach one of those bound log parameters. Limiting factors: databases that accept such bytes are unaffected; the impact is confined to losing the single rejected event, and only the first loss per appender is reported, so it does not cascade. Per CVSS PR:N exploitation needs no authentication, but it is bounded by the specific appender choice and backend database, making realistic risk lower than the base score alone suggests.

Impact

Signals point to a low-to-moderate, integrity-only issue rather than a priority emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) scores 5.3, but the only impact is I:L with C:N and A:N, reflecting that an attacker whose data reaches a logged field can cause that single log event to be dropped (audit/log suppression) - not code execution or data theft. No EPSS score was supplied in the input, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV and no exploit code is referenced, so there is no public exploit identified at time of analysis. The vuln.today priority is 'this_month' (not act_now/emergency), consistent with a real but non-urgent integrity weakness. A key limiter the raw score hides: impact only materializes when the AdoNetAppender writes to a database that rejects NUL or invalid UTF-16 such as PostgreSQL, and only the first such loss per appender is reported - so damage is bounded and deployment-dependent. The 'Information Disclosure' tag conflicts with the CVSS vector (C:N, I:L): this is a log-integrity/event-suppression flaw, not a confidentiality disclosure.

Exploit ScenarioDerived

An attacker submits input (for example a web request field) containing a NUL character or an unpaired UTF-16 surrogate, knowing the application logs that value through log4net's AdoNetAppender into a strict database such as PostgreSQL. The database rejects the insert, the offending log event is silently lost, and because only the first such loss per appender is reported, the attacker can suppress evidence of their own activity. No public exploit code is referenced; exploitation is straightforward where attacker-influenced data is logged over the network.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Log event suppression in Apache log4net's AdoNetAppender (1.2.9 through 3.5.x) lets attacker-influenced data quietly delete a log record: text parameters were bound to the database unchanged, so a NUL character or an unpaired UTF-16 surrogate is passed straight through, and a backend that refuses such values - PostgreSQL is named - rejects the insert and the event is lost, with only the first such loss per appender ever reported. An application is exposed only if it uses AdoNetAppender against such a database and untrusted data reaches one of those bound parameters; the result is integrity-only (CVSS 5.3, C:N/I:L/A:N) and bounded to the individual rejected event rather than cascading. No public exploit identified at time of analysis and the issue is not in CISA KEV; Apache ships 3.6.0 as the fix, and the priority is this_month rather than an emergency.

RemediationAI

Upgrade to Apache log4net 3.6.0, the version the vendor states fixes this issue (patch references: PR https://github.com/apache/logging-log4net/pull/355 and commit https://github.com/apache/logging-log4net/commit/a996aa8d569c709ddf0a5b1011a4f06bac9ce21d; advisory https://lists.apache.org/thread.html/jgrh2z1l8tyk33ds6jp5ck18f7wckbch). Plan for observable output changes: lone surrogates are now escaped as \uXXXX for every appender via AppenderSkeleton.RenderLoggingEvent with no opt-out, AdoNetAppender escapes NUL as \0 together with lone surrogates and truncates text parameters to Size without splitting a surrogate pair, so stored and rendered records that previously contained ?, U+FFFD or raw bytes will differ, and XML layouts still mask lone surrogates as ? - downstream parsers and log-diff tooling should be re-validated, and the retry cap change means a database failing after start-up now costs one round trip per event. If upgrading cannot be scheduled immediately, strip U+0000 and unpaired surrogates from untrusted data before it reaches the logged parameters (accepting that the malicious fragment is no longer recorded verbatim), or point the appender at a store that accepts those values (which keeps raw control characters in the log and preserves the injection surface), and monitor appender error output because only the first rejected event per appender is reported, so further suppressions are silent unless logging is instrumented.

Affected VersionsENISA

Apache log4net 1.2.9 <3.6.0
Apache log4net 02e1e115435888485f2e28b414d267e39e799e07 <a996aa8d569c709ddf0a5b1011a4f06bac9ce21d

Affected Packages

euvd apache_log4net fix: 3.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-158 (Improper Neutralization of Null Byte or NUL Character) applies here to the .NET string model: log4net messages are UTF-16 strings, and a U+0000 code point or a lone (unpaired) surrogate is representable in memory but not valid in the text types of many relational backends. AdoNetAppender builds its INSERT by binding layout-rendered strings as DbParameters; before this fix those parameters were handed to the provider verbatim, so on PostgreSQL (which rejects 0x00 and malformed UTF-16/UTF-8 sequences in text columns) the statement fails, the batch is rejected and the event never lands in the log table, while the appender's own error reporting surfaces only the first such failure. The upstream fix in 3.6.0 escapes NUL as \0 and lone surrogates as \uXXXX, cuts text parameters to the configured Size without splitting a surrogate pair, and escapes lone surrogates centrally in AppenderSkeleton.RenderLoggingEvent for every appender (third-party ones included) with no opt-out, while NUL escaping remains per sink. The same change set also caps AdoNetAppender retries only while the database has not yet accepted an insert, so a backend that fails after start-up costs one round trip per event. CPE data pins the affected component to cpe:2.3:a:apache_software_foundation:apache_log4net.

Know when Apache Log4Net gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 5.3 MEDIUM

Attacker-supplied data reaches logging remotely without auth (AV:N/PR:N); only the single audit record is suppressed, so integrity is Low and confidentiality/availability are None.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
High
widely-used .NET logging library across many enterprise applications
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy