p PatchFirst

CVE-2026-53910

CVE-2026-53910 · Heap-based Buffer Overflow in GNU diffutils

CVSS 2.1 · Low · EPSS 0.3% · 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=="diffutils"'

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.

diff3 tool from GNU diffutils is vulnerable to a heap‑based buffer overflow due to multiple signed integer overflows in line‑mapping calculations. Incorrect arithmetic in mapping line ranges can result in corrupted values being used for memory allocation and loop bounds. When processing crafted diff output, these overflows may cause the application to allocate insufficient memory and subsequently perform out‑of‑bounds writes during internal processing. An attacker who can control the output of the diff program used by diff3 (e.g. via --diff-program pointing to a malicious script) can trigger out-of-bounds writes, resulting in a crash and potentially remote code execution depending on the environment.

This issue has been fixed in commit 9ff04d5b84743e331e80b589335a52c5480d1815

NOTE: The project maintainers claim that this is not a security issue. They state that the worst outcome this issue can cause is a crash of diff and that it cannot be used to escalate privileges.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • diffutils

    Versions
    • ≥ 0, ≤ 3.12: Affected (custom)

    No fix published

  • diffutils Debian 12

    Versions
    • 1:3.10-1
    • 1:3.10-2
    • 1:3.10-3
    • 1:3.10-4
    • 1:3.12-1
    • 1:3.8-4
    All versions (7)
    • 1:3.8-4+hurd.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • diffutils Debian 13

    Versions
    • 1:3.10-4
    • 1:3.12-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • diffutils Debian 14

    Versions
    • 1:3.10-4
    • 1:3.12-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • diffutils Ubuntu Pro 14.04 LTS

    Versions
    • 1:3.2-8
    • 1:3.3-1
    Affected ranges
    • ECOSYSTEM: < 1:3.3-1ubuntu0.1~esm1

    Update to 1:3.3-1ubuntu0.1~esm1

  • diffutils Ubuntu Pro 16.04 LTS

    Versions
    • 1:3.3-1
    • 1:3.3-2
    • 1:3.3-3
    Affected ranges
    • ECOSYSTEM: < 1:3.3-3ubuntu0.1~esm1

    Update to 1:3.3-3ubuntu0.1~esm1

  • diffutils Ubuntu Pro 18.04 LTS

    Versions
    • 1:3.6-1
    Affected ranges
    • ECOSYSTEM: < 1:3.6-1ubuntu0.1~esm1

    Update to 1:3.6-1ubuntu0.1~esm1

  • diffutils Ubuntu Pro 20.04 LTS

    Versions
    • 1:3.7-3
    Affected ranges
    • ECOSYSTEM: < 1:3.7-3ubuntu0.1~esm1

    Update to 1:3.7-3ubuntu0.1~esm1

  • diffutils Ubuntu 22.04 LTS

    Versions
    • 1:3.8-0ubuntu1
    • 1:3.8-0ubuntu2
    Affected ranges
    • ECOSYSTEM: < 1:3.8-0ubuntu2.1

    Update to 1:3.8-0ubuntu2.1

  • diffutils Ubuntu 24.04 LTS

    Versions
    • 1:3.8-4
    • 1:3.10-1
    • 1:3.10-1build1
    Affected ranges
    • ECOSYSTEM: < 1:3.10-1ubuntu0.1

    Update to 1:3.10-1ubuntu0.1

  • diffutils Ubuntu 26.04 LTS

    Versions
    • 1:3.10-4
    • 1:3.12-1
    Affected ranges
    • ECOSYSTEM: < 1:3.12-1ubuntu0.1

    Update to 1:3.12-1ubuntu0.1

Original sources

Check your server →