p PatchFirst

CVE-2026-129511

CVE-2026-129511 · Apache log4net: Best-fit encoding in FileAppender lets fullwidth text forge XML log events

CVSS 5.3 · Medium · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="log4net"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system

Affected products and versions

  • apache log4net

    Versions
    • ≥ 1.2.9, < 3.6.0: Affected (semver)

    Update to 3.6.0

  • apache log4net

    Versions
    • ≥ 3.4.0, < 3.6.0: Affected (semver)

    Update to 3.6.0

  • apache log4net

    Versions
    • ≥ 02e1e115435888485f2e28b414d267e39e799e07, < 735db80ab163ef08c54d2cc4d3d576b22b77f4bc: Affected (git)

    No fix published

  • log4net Debian 13

    Versions
    • 1.2.10+dfsg-10
    • 1.2.10+dfsg-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • log4net Debian 14

    Versions
    • 1.2.10+dfsg-10
    • 1.2.10+dfsg-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • log4net Ubuntu 16.04 LTS

    Versions
    • 1.2.10+dfsg-6
    • 1.2.10+dfsg-7
    • 1.2.10+dfsg-7ubuntu0.16.04.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • log4net Ubuntu 18.04 LTS

    Versions
    • 1.2.10+dfsg-7
    • 1.2.10+dfsg-7ubuntu0.18.04.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • log4net Ubuntu 20.04 LTS

    Versions
    • 1.2.10+dfsg-7
    • 1.2.10+dfsg-7ubuntu0.20.04.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • log4net Ubuntu 22.04 LTS

    Versions
    • 1.2.10+dfsg-8
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • log4net Ubuntu 24.04 LTS

    Versions
    • 1.2.10+dfsg-8
    • 1.2.10+dfsg-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • log4net Ubuntu 26.10

    Versions
    • 1.2.10+dfsg-9build1
    • 1.2.10+dfsg-10
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • log4net Ubuntu 26.04 LTS

    Versions
    • 1.2.10+dfsg-9
    • 1.2.10+dfsg-9build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →