CVE-2026-105241: Apache log4net: Unencodable content discards a whole SmtpPickupDirAppender batch

Published Oct 6, 2026
·
Updated

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.

Affected Software

1 affected component
Apache log4net>=1.2.9<3.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache log4net to a version that resolves this vulnerability.

    Fixed in 3.5.0

Event History

Oct 6, 2026
CVE Published
via MITRE·07:49 PM
Data Sourced
via MITRE·07:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Only applications configured to use log4net's SmtpPickupDirAppender are affected. Versions from 1.2.9 before 3.5.0 are vulnerable.

2

What must an attacker be able to do to exploit this issue?

A party must be able to cause data containing content the mail-file writer cannot encode, such as an unpaired UTF-16 surrogate, to reach a log message. The malformed content can cause the write to fail and discard the entire buffered batch.

3

What is the operational impact of a failed batch?

Events other than the one carrying the problematic content can be suppressed because the whole buffered batch is discarded. A truncated mail file may also be left in the pickup directory.

4

What is the recommended remediation?

Upgrade Apache log4net to version 3.5.0, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203