{"id":"CVE-2026-129511","summary":"Apache log4net: Best-fit encoding in FileAppender lets fullwidth text forge XML log events","details":"Improper Output Neutralization for Logs vulnerability in the FileAppender, RollingFileAppender, UdpAppender and SmtpAppender of Apache log4net.\n\nCharacters 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 \u003c, \u003e 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.\n\nThis issue affects Apache log4net: from 1.2.9 before 3.6.0.\n\nUsers are recommended to upgrade to version 3.6.0, which fixes the issue.","modified":"2026-11-18T17:46:03.338544198Z","published":"2026-11-17T22:14:22.857Z","database_specific":{"cna_assigner":"apache","cwe_ids":["CWE-117"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129511.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/11/17/35"},{"type":"PACKAGE","url":"https://gitbox.apache.org/repos/asf/logging-log4net.git"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129511.json"},{"type":"FIX","url":"https://github.com/apache/logging-log4net/commit/735db80ab163ef08c54d2cc4d3d576b22b77f4bc"},{"type":"FIX","url":"https://github.com/apache/logging-log4net/pull/355"},{"type":"ADVISORY","url":"https://lists.apache.org/thread.html/v2oljwjcboxk0tvyy5v86o2fjlslx1zt"},{"type":"WEB","url":"https://nuget.org/packages"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129511"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitbox.apache.org/repos/asf/logging-log4net.git","events":[{"introduced":"02e1e115435888485f2e28b414d267e39e799e07"},{"fixed":"735db80ab163ef08c54d2cc4d3d576b22b77f4bc"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"02e1e115435888485f2e28b414d267e39e799e07"},{"fixed":"735db80ab163ef08c54d2cc4d3d576b22b77f4bc"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["rel/3.5.0","rc/3.5.0-rc2","rc/3.5.0-rc1","rc/3.4.1-preview.1","rel/3.4.0","rc/3.4.0-rc1","rc/3.4.0-preview.1","rel/3.3.2","rc/3.3.2-rc1","rel/3.3.1","rc/3.3.1-rc1","rel/3.3.0","rc/3.3.0-rc1","rc/3.2.0-rc1","rc/temp","rel/3.2.0","rc/3.2.0-preview.1","rel/3.1.0","rc/3.1.0-rc1","rel/3.0.4","rc/3.0.4-rc1","rc/3.0.4-preview.1","rel/3.0.3","rc/3.0.3-rc1","rc/3.0.3-preview.1","rel/3.0.2","rc/3.0.2-rc1","rel/3.0.1","rc/3.0.1-rc1","rc/3.0.1-preview.2","rc/3.0.1-preview.1","rel/2.x","rel/2.0.17","rel/2.0.16","rel/2.0.15","rel/2.0.14","rel/2.0.13","rel/2.0.12","rel/2.0.11","rel/2.0.10"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-129511.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/apache/logging-log4net","events":[{"introduced":"18a96716af733f7c6e4956526acdcc117a1bd461"},{"fixed":"ed973ba2e4b2cf7bd0c6a3c1e65f783563228068"},{"introduced":"71c038c1860b331ca944840702d72da53e4cb41f"},{"fixed":"ed973ba2e4b2cf7bd0c6a3c1e65f783563228068"},{"fixed":"735db80ab163ef08c54d2cc4d3d576b22b77f4bc"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"1.2.9"},{"fixed":"3.6.0"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"3.4.0"},{"fixed":"3.6.0"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"735db80ab163ef08c54d2cc4d3d576b22b77f4bc"}]}]}}],"versions":["rel/3.5.0","rc/3.5.0-rc2","rc/3.5.0-rc1","rc/3.4.1-preview.1","rel/3.4.0","rc/3.4.0-rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-129511.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}