CVE-2026-129511Apache log4net: Best-fit encoding in FileAppender lets fullwidth text forge XML log events
Improper Output Neutralization for Logs vulnerability in the FileAppender, RollingFileAppender, UdpAppender and SmtpAppender of Apache log4net. Characters the configured encoding could not represent were converted by that encoding's best-fit fallback, which turns fullwidth characters such as U+FF1C, U+FF1E and U+FF02 into <, > and ". The conversion happened after XmlLayout or XmlLayoutSchemaLog4J had escaped the text, so a party whose data reaches a log message could forge complete log events in an XML log, for example a fake audit entry. On .NET Framework this needs no configuration where the ANSI code page is single-byte, since that is the default encoding; on .NET it needs a configured single-byte encoding such as ISO-8859-1. This is the best-fit conversion described by the WorstFit research. This issue affects Apache log4net: from 1.2.9 before 3.6.0. Users are recommended to upgrade to version 3.6.0, which fixes the issue.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | log4net | Fix pending | UBUNTU-CVE-2026-129511 | |
| Ubuntu 26.04 | log4net | Under investigation | UBUNTU-CVE-2026-129511 | |
| Ubuntu 24.04 | log4net | Under investigation | UBUNTU-CVE-2026-129511 | |
| Ubuntu 22.04 | log4net | Under investigation | UBUNTU-CVE-2026-129511 | |
| Ubuntu 20.04 | log4net | Fix pending | UBUNTU-CVE-2026-129511 | |
| Ubuntu 18.04 | log4net | Fix pending | UBUNTU-CVE-2026-129511 | |
| Ubuntu 16.04 | log4net | Fix pending | UBUNTU-CVE-2026-129511 | |
| Debian 14 | log4net | Fix pending | DEBIAN-CVE-2026-129511 | |
| Debian 13 | log4net | Fix pending | DEBIAN-CVE-2026-129511 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache log4net: affected: 1.2.9 to before 3.6.0; fixed in
3.6.0 - Apache Software Foundation Apache log4net: affected: 3.4.0 to before 3.6.0; fixed in
3.6.0 - Apache Software Foundation Apache log4net: affected: 02e1e115435888485f2e28b414d267e39e799e07 to before 735db80ab163ef08c54d2cc4d3d576b22b77f4bc; fixed in
735db80ab163ef08c54d2cc4d3d576b22b77f4bc
Vendor advisories:
- https://github.com/apache/logging-log4net/pull/355 (patch)
- https://github.com/apache/logging-log4net/commit/735db80ab163ef08c54d2cc4d3d576b22b77f4bc (patch)
- https://lists.apache.org/thread.html/v2oljwjcboxk0tvyy5v86o2fjlslx1zt (vendor-advisory)
References
- https://github.com/apache/logging-log4net/pull/355
- https://github.com/apache/logging-log4net/commit/735db80ab163ef08c54d2cc4d3d576b22b77f4bc
- https://lists.apache.org/thread.html/v2oljwjcboxk0tvyy5v86o2fjlslx1zt
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.