Skip to main content

CVE-2026-105241: CWE-176 Improper Handling of Unicode Encoding in Apache Software Foundation Apache log4net

0
Medium
VulnerabilityCVE-2026-105241cvecve-2026-105241cwe-176
Published: 10/06/2026 (10/06/2026, 19:49:03 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache log4net

Description

CVE-2026-105241 is a medium severity vulnerability in Apache log4net affecting versions from 1.2.9 up to but not including 3.5.0. It involves improper handling of Unicode encoding in the SmtpPickupDirAppender component. Specifically, when the mail file writer encounters content it cannot encode, such as an unpaired UTF-16 surrogate, it throws an error causing all buffered events in the batch to be discarded and potentially leaving a truncated mail file in the pickup directory. This can allow an attacker who controls log message content to suppress logging of other events. The issue is fixed in version 3.5.0.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected software

Apache Software Foundation

Apache log4net

Affected versions
>=1.2.9 <3.5.0

Apache Software Foundation

Apache log4net

log4net
pkg:nuget/log4net
Affected versions
>=1.2.9 <3.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/06/2026, 20:19:14 UTC

Technical Analysis

This vulnerability in Apache log4net's SmtpPickupDirAppender arises from improper handling of Unicode encoding errors. When the appender attempts to write mail files containing unencodable content like unpaired UTF-16 surrogates, it throws an exception that discards the entire batch of buffered events, not just the problematic one. This results in loss of log records and possibly truncated mail files in the pickup directory. Only applications using SmtpPickupDirAppender are affected. The flaw affects versions >=1.2.9 and <3.5.0. Upgrading to 3.5.0 resolves the issue.

Potential Impact

The vulnerability allows suppression of log records by causing the appender to discard all buffered events when encountering unencodable Unicode content. This can lead to loss of important logging information and truncated mail files in the pickup directory. There is no direct confidentiality or availability impact, but integrity of logging is affected.

Mitigation Recommendations

Users should upgrade Apache log4net to version 3.5.0 or later, where this issue is fixed. No other mitigations are indicated. Patch status is confirmed by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-10-04T16:20:44.036Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ac5544a2cdf04f656d9e12a

Added to database: 10/06/2026, 20:04:26 UTC

Last enriched: 10/06/2026, 20:19:14 UTC

Last updated: 10/06/2026, 20:19:15 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses