Skip to main content

Apache log4net CVE-2026-129511

| EUVDEUVD-2026-128194 MEDIUM
Improper Output Neutralization for Logs (CWE-117)
2026-11-17 apache GHSA-jqh7-qm7m-vcgg
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 fullwidth < > " characters
  2. Delivery
    Data written to XmlLayout/XmlLayoutSchemaLog4J appender
  3. Exploit
    Single-byte encoding best-fit converts to real markup
  4. Execution
    XML escaping bypassed after layout runs
  5. Impact
    Forge fake audit/log event entry

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log output neutralization
Exploitation Conditions

Exploitation requires the application to use one of the affected appenders (FileAppender, RollingFileAppender, UdpAppender, SmtpAppender) with the XmlLayout or XmlLayoutSchemaLog4J layout, AND an output encoding whose best-fit fallback is active. On .NET Framework this needs no special configuration wherever the ANSI code page is single-byte, because that is the default encoding; on .NET (Core) it requires an explicitly configured single-byte encoding such as ISO-8859-1. The attacker must be able to place data (e.g. fullwidth characters U+FF1C/U+FF1E/U+FF02) into a message that reaches the log. LIMITING FACTORS: multi-byte/UTF-8 encodings are not affected, non-XML layouts are not affected, and the impact is confined to forging log content - no confidentiality or availability impact. Complete fix is to upgrade to log4net 3.6.0.

Impact

This is a medium-severity log-forgery issue (CVSS 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N), and the impact profile is narrow: integrity-only (I:L) with no confidentiality (C:N) and no availability (A:N) impact. The network vector and lack of required privileges (PR:N) are offset by the fact that the only outcome is forged entries in an XML audit/event log, not code execution or data theft. No EPSS score, CISA KEV listing, or confirmed public exploit was supplied; the attached GitHub links are the fix PR #355 and the fixing commit, not working exploit code, so exploitation status is 'no public exploit identified at time of analysis.' The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a conditional, integrity-only flaw. CONFLICT TO NOTE: the input Tags label this 'Information Disclosure,' but the CVSS vector and description describe log-event forgery (integrity), with C:N - treat the disclosure label as inaccurate. Realistic priority is moderate: patch within the normal maintenance window rather than as an emergency, and prioritize where log4net feeds security/audit pipelines whose integrity is relied upon.

Exploit ScenarioDerived

An attacker supplies input containing fullwidth characters (U+FF1C, U+FF1E, U+FF02) into a field that the application logs through a log4net FileAppender, RollingFileAppender, UdpAppender or SmtpAppender configured with XmlLayout or XmlLayoutSchemaLog4J and a single-byte output encoding. Because the encoding's best-fit fallback rewrites those characters into <, > and " after the XML layout has already escaped the text, the attacker injects syntactically valid XML and forges complete log events - for example a fabricated audit entry. No public exploit code was identified; exploitation requires the specific XmlLayout plus single-byte-encoding conditions described below.

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

Improper output neutralization in Apache log4net's XML logging path lets data that reaches a log message forge complete log events - for example a fabricated audit entry - in FileAppender, RollingFileAppender, UdpAppender and SmtpAppender deployments that use XmlLayout or XmlLayoutSchemaLog4J. The integrity-only impact (CVSS 5.3, C:N/I:L/A:N) applies to log4net from 1.2.9 before 3.6.0, and on .NET Framework it is reachable with no special configuration wherever the ANSI code page is single-byte, since that is the default encoding; on .NET (Core) it requires an explicitly configured single-byte encoding such as ISO-8859-1. No public exploit code and no confirmed active exploitation were identified at time of analysis; Apache has released 3.6.0 as the complete fix.

RemediationAI

Upgrade Apache log4net to 3.6.0, the version Apache names as the complete fix; vendor-released patch: 3.6.0. The upstream change is visible in https://github.com/apache/logging-log4net/pull/355 and commit https://github.com/apache/logging-log4net/commit/735db80ab163ef08c54d2cc4d3d576b22b77f4bc, with the advisory at https://lists.apache.org/thread.html/v2oljwjcboxk0tvyy5v86o2fjlslx1zt. Where an upgrade cannot be scheduled immediately, the practical compensating controls follow directly from the exploitation prerequisites: reconfigure the affected appenders to a multi-byte or UTF-8 encoding instead of a single-byte best-fit encoding (this removes the fallback substitution entirely, but changes the byte representation of existing log output and may break downstream parsers or log shippers that assume the old code page), or move the affected sinks to a non-XML layout such as a pattern layout with an appropriate escaping scheme (this eliminates the XML forgery primitive but changes the log format and any consumers that parse the XML schema). Neither workaround is described by the vendor as a complete fix, and the Escaping-based hardening added in the upstream patch series is only delivered by upgrading; note also that an ASF priority of this_month applies rather than an emergency designation, and no public exploit code or confirmed active exploitation was identified at time of analysis.

Affected VersionsENISA

Apache log4net 1.2.9 <3.6.0
Apache log4net 3.4.0 <3.6.0
Apache log4net 02e1e115435888485f2e28b414d267e39e799e07 <735db80ab163ef08c54d2cc4d3d576b22b77f4bc

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

The root cause is CWE-117 (Improper Output Neutralization for Logs), realized through a character-encoding best-fit fallback rather than a missing escape. XmlLayout and XmlLayoutSchemaLog4J correctly escape text before it is written, but the escaping happens in the character domain; when the configured encoding cannot represent a character, the encoder's best-fit fallback substitutes an ASCII lookalike. Fullwidth forms such as U+FF1C, U+FF1E and U+FF02 are mapped by that fallback to '<', '>' and '"', which are the exact delimiters the XML layouts had already neutralized. The substitution therefore occurs after escaping and re-introduces live markup, so an attacker who can place text into a log message can close the current element and inject a complete, well-formed fake log event. The research community refers to this class as the WorstFit conversion. Reachability depends on the platform's default encoding: on .NET Framework the default ANSI code page is single-byte, so the condition is met without configuration, whereas on .NET (Core) an administrator must have configured a single-byte encoding such as ISO-8859-1. Multi-byte and UTF-8 encodings do not exhibit the substitution and are not affected, and non-XML layouts are not affected because there is no XML structure to forge.

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

Untrusted data reaching a log can be injected remotely without privileges (AV:N, PR:N), but the only effect is forging XML log content, so integrity-only I:L with C:N and A:N.

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 Output Neutralization for Logs vulnerability in the FileAppender, RollingFileAppender, UdpAppender and SmtpAppender of Apache log4net.

Characters the configured encoding could not represent were converted by that encoding's best-fit fallback, which turns fullwidth characters such as U+FF1C, U+FF1E and U+FF02 into <, > and ". The conversion happened after XmlLayout or XmlLayoutSchemaLog4J had escaped the text, so a party whose data reaches a log message could forge complete log events in an XML log, for example a fake audit entry. On .NET Framework this needs no configuration where the ANSI code page is single-byte, since that is the default encoding; on .NET it needs a configured single-byte encoding such as ISO-8859-1. This is the best-fit conversion described by the WorstFit research.

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 Apache logging library across .NET 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

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