Skip to content
Heist/ feed
Back to feed
Medium

log4net — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-105241

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.

Products
log4net
Affected versions
1.2.10+dfsg-10, 1.2.10+dfsg-6, 1.2.10+dfsg-7, 1.2.10+dfsg-7ubuntu0.16.04.1, 1.2.10+dfsg-7ubuntu0.18.04.1, 1.2.10+dfsg-7ubuntu0.20.04.1, 1.2.10+dfsg-8, 1.2.10+dfsg-9, 1.2.10+dfsg-9build1
Fixed versions
Not specified
CVEs
CVE-2026-105241
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:58 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-105241

core-osv · Original source

Published 6 Oct 2026, 20:17 UTC

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.

osv:UBUNTU-CVE-2026-105241

log4net

Fixed versions: Not specified

log4net

Fixed versions: Not specified

log4net

Fixed versions: Not specified

log4net

Fixed versions: Not specified

log4net

Fixed versions: Not specified

log4net

Fixed versions: Not specified

log4net

Fixed versions: Not specified

Complete source record
{
  "id": "2514868108397d86da9c4d61dfb05e69a2f9d1409d384cdbd1245888bd41319a",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-105241",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-105241",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-105241",
    "products": [
      {
        "name": {
          "value": "log4net",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.10+dfsg-6",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.10+dfsg-7",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.10+dfsg-7ubuntu0.16.04.1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "log4net",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.10+dfsg-7",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.2.10+dfsg-7ubuntu0.18.04.1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "log4net",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.10+dfsg-7",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.2.10+dfsg-7ubuntu0.20.04.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "log4net",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.10+dfsg-8",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "log4net",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.10+dfsg-8",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.2.10+dfsg-9",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "log4net",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.10+dfsg-9build1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.2.10+dfsg-10",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "log4net",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.10+dfsg-9",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.2.10+dfsg-9build1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-105241",
      "aliases": [
        "UBUNTU-CVE-2026-105241"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "log4net",
            "purl": "pkg:deb/ubuntu/log4net?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.2.10+dfsg-6",
            "1.2.10+dfsg-7",
            "1.2.10+dfsg-7ubuntu0.16.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105241.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblog4net1.2-cil",
                "binary_version": "1.2.10+dfsg-7ubuntu0.16.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "log4net",
            "purl": "pkg:deb/ubuntu/log4net?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.2.10+dfsg-7",
            "1.2.10+dfsg-7ubuntu0.18.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105241.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblog4net1.2-cil",
                "binary_version": "1.2.10+dfsg-7ubuntu0.18.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "log4net",
            "purl": "pkg:deb/ubuntu/log4net?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.2.10+dfsg-7",
            "1.2.10+dfsg-7ubuntu0.20.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105241.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblog4net1.2-cil",
                "binary_version": "1.2.10+dfsg-7ubuntu0.20.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "log4net",
            "purl": "pkg:deb/ubuntu/log4net?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.2.10+dfsg-8"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105241.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblog4net1.2-cil",
                "binary_version": "1.2.10+dfsg-8"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "log4net",
            "purl": "pkg:deb/ubuntu/log4net?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.2.10+dfsg-8",
            "1.2.10+dfsg-9"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105241.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblog4net1.2-cil",
                "binary_version": "1.2.10+dfsg-9"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "log4net",
            "purl": "pkg:deb/ubuntu/log4net?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.2.10+dfsg-9build1",
            "1.2.10+dfsg-10"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105241.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblog4net1.2-cil",
                "binary_version": "1.2.10+dfsg-10"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "log4net",
            "purl": "pkg:deb/ubuntu/log4net?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.2.10+dfsg-9",
            "1.2.10+dfsg-9build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105241.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblog4net1.2-cil",
                "binary_version": "1.2.10+dfsg-9build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:59.492831918Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-105241"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-105241",
        "https://www.cve.org/CVERecord?id=CVE-2026-105241",
        "https://github.com/apache/logging-log4net/pull/315",
        "https://lists.apache.org/thread/hg8dgh3oy8bp3dhb8nsygk9kw2o401ws"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-105241",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357826,
  "published_at": "2026-10-06T20:17:00+00:00"
}