Skip to main content

Apache log4net CVE-2026-105242

| EUVDEUVD-2026-93867 MEDIUM
Improper Handling of Exceptional Conditions (CWE-755)
2026-10-06 security@apache.org GHSA-r886-mf8r-26c7
5.3
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

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

  1. Access
    Send request with markup payload (e.g. <script>)
  2. Exploit
    Reading request params triggers ASP.NET request validation exception
  3. Execution
    %aspnet-request layout throws, appender discards event
  4. Impact
    Attacker's request evades logging

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling procedures
Exploitation Conditions

Exploitation requires a specific stack: (1) the application runs on ASP.NET for .NET Framework (the vulnerable code path depends on System.Web, which netstandard/.NET Core lacks per the vendor test guard NET462_OR_GREATER); (2) log4net version in the range 1.2.11 up to but not including 3.5.0; (3) the log4net layout pattern explicitly uses the %aspnet-request converter; and (4) ASP.NET request validation is active (default on .NET Framework) so that a parameter such as <script> raises HttpRequestValidationException on first access to HttpRequest.Params. LIMITING FACTORS: the affected configuration is narrow (Framework-only plus an opt-in layout converter), no authentication or user interaction is needed, and crucially the impact is confined to suppressing the logging of the attacker's own request - it cannot delete other users' logs, read data, or crash the service, so realistic risk is limited to log evasion aiding a separate attack.

Impact

This is a genuine but low-priority medium-severity issue (CVSS 5.3), and the signals should be read carefully. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N correctly scores a remote, unauthenticated, low-complexity vector with NO confidentiality or availability impact and only LOW integrity impact - that integrity impact is loss/suppression of a log record, i.e. an anti-forensics/log-evasion weakness, not data compromise or code execution. No EPSS score, no CISA KEV listing, and no public exploit were provided in the input, so exploitation status is: no public exploit identified at time of analysis. SSVC-style reasoning: technical impact is partial (log integrity only), automatable is plausible (a scripted request can trigger it) but the payoff is merely suppressing the attacker's own request log, which limits practical value to covering tracks for a separate attack. CONFLICTING SIGNAL: the input Tag 'Information Disclosure' is inconsistent with the CVSS (C:N) and the described behavior - nothing is disclosed; a log event is dropped. Real-world priority is low: exploitation requires a narrow configuration, and the worst outcome is a missing log entry rather than a compromised system.

Exploit ScenarioDerived

An attacker sends an HTTP request containing markup such as <script> in a query-string or form parameter to a vulnerable ASP.NET-on-.NET-Framework application whose log4net layout uses %aspnet-request. When the layout reads the request parameters, ASP.NET request validation throws, log4net's appender discards the entire log event, and the attacker's request leaves no trace in the logs - useful anti-forensics to mask other malicious activity. No public proof-of-concept was identified in the provided data, though the vendor's own regression tests demonstrate the behavior.

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

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

Alert me

AnalysisAIv1 – Oct 06, 2026

Log-record suppression in the %aspnet-request pattern converter of Apache log4net lets an unauthenticated remote sender erase the log entry for their own request by placing markup such as <script> in a parameter, because reading HttpRequest.Params triggers ASP.NET request validation, throws HttpRequestValidationException inside the layout, and causes the appender to discard the entire event. Only applications running on ASP.NET for .NET Framework (the converter depends on System.Web, which netstandard/.NET Core lacks) with log4net 1.2.11 through 3.4.x and a layout that explicitly uses %aspnet-request are affected; versions from 3.5.0 onward are fixed. Impact is confined to the attacker suppressing logging of their own request - it cannot read data, delete other users' records, or crash the service - and there is no public exploit identified at time of analysis, no CISA KEV listing, and the assessed vector is AV:N/AC:L/PR:N/UI:N with only a low integrity impact (CVSS 5.3), making this a real but low-priority issue whose practical value is helping an attacker evade audit trails for a separate attack.

RemediationAI

Upgrade to Apache log4net 3.5.0, the vendor-released fix version that resolves CVE-2026-105242; the patch is upstream in commit 145203420c579a703008b4b723b6a080757f4964 and pull request 316, both of which are linked from the NVD references alongside the Apache announcement at https://lists.apache.org/thread.html/zg6dbqm4ztm7j3c21nfsqj0yxm5yrpdx. If upgrading cannot be scheduled immediately, the most direct compensating control is to stop using the %aspnet-request converter in layout patterns (for example on log4net 1.2.11 through 3.4.x deployments on ASP.NET for .NET Framework), replacing it with %message, %logger, %property or other converters that do not touch HttpRequest.Params - the trade-off is loss of request-field context in log output, which may reduce forensic value elsewhere. A stronger but higher-risk workaround is to lower or disable ASP.NET request validation (for example via requestValidationMode settings) so that HttpRequest.Params does not throw: this removes an important defense against cross-site scripting and request-validation attacks across the entire application and should only be considered as a short-lived, tightly scoped measure. Because the flaw only lets a sender suppress the record of their own request and cannot affect other users' entries, integrity monitoring and out-of-band logging of rejected/validation-failing requests can also be used to detect the evasion attempt while the upgrade is pending; no vendor-assigned workaround beyond upgrading to 3.5.0 is documented in the available references.

Affected VersionsENISA

Apache log4net 243f1e9f3ee235955bade4b4fe664a903378719a <145203420c579a703008b4b723b6a080757f4964
Apache log4net 1.2.11 <3.5.0

Affected Packages

euvd apache_log4net fix: 3.5.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-755 (Improper Handling of Exceptional Conditions) in log4net's %aspnet-request pattern converter, which reads HttpRequest.Params to render request data into log output. On ASP.NET for .NET Framework, request validation is enabled by default, and the first access to HttpRequest.Params validates the query string, form fields and cookies; a value containing markup such as <script> therefore raises HttpRequestValidationException from inside the layout. Because log4net does not contain that exception, the appender treats the failed render as a failure for the whole event and drops it, so the sender effectively controls whether their own request is logged. The fix in the 3.5.0 changelog (issue 316, audit da18b6fd-f019) switches the converter to read through HttpRequest.Unvalidated, which returns the raw content instead of throwing, and adds tests guarded by NET462_OR_GREATER - confirming the vulnerable code path requires System.Web and therefore exists only on .NET Framework, not netstandard or .NET Core. The vendor test suite also verifies that benign requests render unchanged and that a missing HttpContext still yields the not-available marker, so the change is scoped to the exceptional path rather than altering normal output.

Know when 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

A remote unauthenticated crafted request (AV:N/AC:L/PR:N/UI:N) causes loss of a log record only, giving I:L with no confidentiality (C:N) or availability (A:N) impact.

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

Lifecycle Timeline

2
Patch available
Oct 06, 2026 - 21:05 EUVD
CVE Published
Oct 06, 2026 - 20:17 cve.org
MEDIUM 5.3

DescriptionCVE.org

Improper Handling of Exceptional Conditions vulnerability in the aspnet-request pattern converter of Apache log4net.

Reading request parameters triggers ASP.NET request validation, so a request carrying content such as markup made the layout throw and the appender discarded the whole event. A sender could suppress the log record of their own request. Only applications on ASP.NET for .NET Framework whose layout uses %aspnet-request are affected.

This issue affects Apache log4net: from 1.2.11 before 3.5.0.

Users are recommended to upgrade to version 3.5.0, which fixes the issue.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
widely used .NET logging library, mostly legacy Framework deployments
Data Quality
6 sources
Confidence: High

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.3%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

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