Description
Improper Handling of Unicode Encoding vulnerability in the SmtpPickupDirAppender of Apache log4net.

Content that the mail file writer cannot encode, such as an unpaired UTF-16 surrogate, made the write throw. Every buffered event in the batch was discarded, not only the one carrying the content, and a truncated mail could be left in the pickup directory. A party whose data reaches a log message could suppress the records of other events. Only applications that use SmtpPickupDirAppender are affected.

This issue affects Apache log4net: from 1.2.9 before 3.5.0.

Users are recommended to upgrade to version 3.5.0, which fixes the issue.
Published: 2026-10-06
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Log Data Loss
Action: Immediate Patch
AI Analysis

Impact

An improperly handled Unicode encoding issue in the SmtpPickupDirAppender of Apache log4net causes the mail file writer to throw when it encounters content that cannot be encoded, such as unpaired UTF-16 surrogates. When this exception occurs, the appender discards the entire buffered batch of log events, leaving only a truncated mail file in the pickup directory. Consequently, an attacker who can inject such Unicode content into a log message can suppress or erase other log records, undermining monitoring and audit trails.

Affected Systems

Apache log4net versions from 1.2.9 up to but excluding 3.5.0 are affected. The flaw resides in the SmtpPickupDirAppender, so only applications that configure this appender are susceptible. The product is maintained by the Apache Software Foundation.

Risk and Exploitability

The vulnerability receives a CVSS score of 5.3, indicating moderate impact. The EPSS value is not released, and it is not listed in CISA KEV. The attack vector is likely local or through the application’s logging interface, because the malicious payload must reach the log message that the appender processes. An attacker who can influence application input could craft a Unicode string that triggers the exception, causing loss of log data but not leading to code execution or denial of service. The exploit is constrained to systems that use the vulnerable appender; there is no remote exploit path identified.

Generated by OpenCVE AI on October 7, 2026 at 00:32 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade log4net to version 3.5.0 or later.
  • If upgrading is not feasible, disable the SmtpPickupDirAppender or replace it with a different appender that does not exhibit this behavior.
  • Sanitize or validate Unicode content before it is logged, rejecting or escaping unpaired UTF‑16 surrogates that cannot be encoded.

Generated by OpenCVE AI on October 7, 2026 at 00:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 09 Oct 2026 15:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:log4net:*:*:*:*:*:*:*:*

Wed, 07 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 07 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
References

Wed, 07 Oct 2026 01:15:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache log4net
Vendors & Products Apache
Apache log4net

Tue, 06 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
Description Improper Handling of Unicode Encoding vulnerability in the SmtpPickupDirAppender of Apache log4net. Content that the mail file writer cannot encode, such as an unpaired UTF-16 surrogate, made the write throw. Every buffered event in the batch was discarded, not only the one carrying the content, and a truncated mail could be left in the pickup directory. A party whose data reaches a log message could suppress the records of other events. Only applications that use SmtpPickupDirAppender are affected. This issue affects Apache log4net: from 1.2.9 before 3.5.0. Users are recommended to upgrade to version 3.5.0, which fixes the issue.
Title Apache log4net: Unencodable content discards a whole SmtpPickupDirAppender batch
Weaknesses CWE-176
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-07T14:45:58.074Z

Reserved: 2026-10-04T16:20:44.036Z

Link: CVE-2026-105241

cve-icon Vulnrichment

Updated: 2026-10-07T06:11:57.596Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-06T20:17:15.907

Modified: 2026-10-09T15:29:42.560

Link: CVE-2026-105241

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T01:00:09Z

Weaknesses
  • CWE-176

    Improper Handling of Unicode Encoding