Skip to content
Heist/ feed
Back to feed
Low

Tnef: heap buffer overflow in find_free_number() via numbered-backup suffix generation

Type: advisorySources: OSV

A flaw was found in tnef. A heap-based buffer overflow can occur in the find_free_number() function when generating numbered backup suffixes for duplicate filenames. When numbered backups are enabled and file overwriting is disabled, an attacker can supply a specially crafted Transport Neutral Encapsulation Format (TNEF) file with an excessive number of colliding attachment filenames, causing the numeric counter to write past the allocated memory buffer. This issue may result in an application crash, leading to a Denial of Service (DoS), or potentially arbitrary code execution.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-103680
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:54 UTC · Revision 1

Source evidence

Tnef: heap buffer overflow in find_free_number() via numbered-backup suffix generation

core-osv · Original source

Published 1 Oct 2026, 11:34 UTC

A flaw was found in tnef. A heap-based buffer overflow can occur in the find_free_number() function when generating numbered backup suffixes for duplicate filenames. When numbered backups are enabled and file overwriting is disabled, an attacker can supply a specially crafted Transport Neutral Encapsulation Format (TNEF) file with an excessive number of colliding attachment filenames, causing the numeric counter to write past the allocated memory buffer. This issue may result in an application crash, leading to a Denial of Service (DoS), or potentially arbitrary code execution.

osv:CVE-2026-103680
Complete source record
{
  "id": "0279e71990d3402d79e515cf81e6e847f65237f68b50805f99eb902c5a7e06c2",
  "url": "https://osv.dev/vulnerability/CVE-2026-103680",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Tnef: heap buffer overflow in find_free_number() via numbered-backup suffix generation",
    "summary": "A flaw was found in tnef. A heap-based buffer overflow can occur in the find_free_number() function when generating numbered backup suffixes for duplicate filenames. When numbered backups are enabled and file overwriting is disabled, an attacker can supply a specially crafted Transport Neutral Encapsulation Format (TNEF) file with an excessive number of colliding attachment filenames, causing the numeric counter to write past the allocated memory buffer. This issue may result in an application crash, leading to a Denial of Service (DoS), or potentially arbitrary code execution.",
    "evidence": "osv:CVE-2026-103680",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-103680",
      "aliases": [
        "CVE-2026-103680"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/verdammelt/tnef",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "8edd0e046736764c6decc8cd6e0e739438408f3e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.4.18"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:tnef_project:tnef:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.4.18"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.4.18",
            "1.4.17",
            "1.4.16",
            "1.4.15",
            "1.4.14",
            "1.4.12",
            "TNEF-1.4.11",
            "1.4.11",
            "TNEF-1.4.10",
            "1.4.10"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-103680.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.331212685Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/security/cve/CVE-2026-103680",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103680.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-103680",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2544478",
        "https://github.com/verdammelt/tnef"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-787"
        ],
        "cna_assigner": "fedora",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103680.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-103680",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494752,
  "published_at": "2026-10-01T11:34:51.984+00:00"
}