Skip to main content

Improper Handling of Unicode Encoding vulnerability in the SmtpPickupDirAppender of Apache log4net. (CVE-2026-105241)

0
Medium
Published: 10/06/2026 (10/06/2026, 20:17:00 UTC)
Source: GCVE Database
Product: log4net

Description

CVE-2026-105241 is a medium severity vulnerability in Apache log4net's SmtpPickupDirAppender component. It involves improper handling of Unicode encoding, where unpaired UTF-16 surrogates cause the mail file writer to throw an error. This results in discarding all buffered events in the batch and potentially leaving truncated mail files in the pickup directory. The vulnerability affects applications using SmtpPickupDirAppender in log4net versions from 1.2.9 up to but not including 3.5.0. Upgrading to version 3.5.0 resolves the issue.

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

Ubuntu:16.04:LTSmore threats →ghsa
log4net
pkg:deb/ubuntu/log4net?arch=source&distro=xenial
Affected versions
=1.2.10+dfsg-6=1.2.10+dfsg-7=1.2.10+dfsg-7ubuntu0.16.04.1
Ubuntu:18.04:LTSmore threats →ghsa
log4net
pkg:deb/ubuntu/log4net?arch=source&distro=bionic
Affected versions
=1.2.10+dfsg-7=1.2.10+dfsg-7ubuntu0.18.04.1
Ubuntu:20.04:LTSmore threats →ghsa
log4net
pkg:deb/ubuntu/log4net?arch=source&distro=focal
Affected versions
=1.2.10+dfsg-7=1.2.10+dfsg-7ubuntu0.20.04.1
Ubuntu:22.04:LTSmore threats →ghsa
log4net
pkg:deb/ubuntu/log4net?arch=source&distro=jammy
Affected versions
=1.2.10+dfsg-8
Ubuntu:24.04:LTSmore threats →ghsa
log4net
pkg:deb/ubuntu/log4net?arch=source&distro=noble
Affected versions
=1.2.10+dfsg-8=1.2.10+dfsg-9
Ubuntu:26.10more threats →ghsa
log4net
pkg:deb/ubuntu/log4net?arch=source&distro=stonking
Affected versions
=1.2.10+dfsg-9build1=1.2.10+dfsg-10
Ubuntu:26.04:LTSmore threats →ghsa
log4net
pkg:deb/ubuntu/log4net?arch=source&distro=resolute
Affected versions
=1.2.10+dfsg-9=1.2.10+dfsg-9build1

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/17/2026, 22:40:19 UTC

Technical Analysis

The vulnerability in Apache log4net's SmtpPickupDirAppender arises from improper handling of Unicode encoding. When the mail file writer encounters content it cannot encode, such as an unpaired UTF-16 surrogate, it throws an exception. This causes all buffered events in the batch to be discarded, not just the problematic event, and may leave a truncated mail file in the pickup directory. Consequently, an attacker who can inject data into log messages could suppress logging of other events. This issue affects log4net versions from 1.2.9 before 3.5.0. The vendor fixed the issue in version 3.5.0.

Potential Impact

The vulnerability allows suppression of log records by causing the mail writer to fail and discard all buffered events in a batch. This can lead to loss of log data and truncated mail files in the pickup directory. There is no direct confidentiality or availability impact, but integrity of logging is affected. Only applications using the SmtpPickupDirAppender are impacted.

Mitigation Recommendations

Users should upgrade Apache log4net to version 3.5.0 or later, where this issue is fixed. No other mitigations are indicated. The vendor advisory confirms that upgrading to 3.5.0 resolves the problem.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-105241
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ad3f4f22cdf04f6566575e3

Added to database: 10/17/2026, 22:21:38 UTC

Last enriched: 10/17/2026, 22:40:19 UTC

Last updated: 10/17/2026, 22:40:19 UTC

Views: 2

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