CVE-2026-53910

EUVD-2026-47695
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
CERT-PLCNA
2.1 LOW
LOCAL
LOW
NONE
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:L/SI:L/SA:L
Base Score
CVSS 3.x
EPSS Score
Percentile: 25.83%
Early Detection
Affected products identified ahead of NVD analysis through intelligence sources.
VendorProductVersionSource
gnudiffutils
𝑥
≤ 3.12
CNA
Debian logo
Debian Releases
Debian Product
Codename
diffutils
bookworm
unimportant
bullseye
unimportant
forky
unimportant
sid
unimportant
trixie
unimportant
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
diffutils
bionic
Fixed 1:3.6-1ubuntu0.1~esm1
released
focal
Fixed 1:3.7-3ubuntu0.1~esm1
released
jammy
Fixed 1:3.8-0ubuntu2.1
released
noble
Fixed 1:3.10-1ubuntu0.1
released
resolute
Fixed 1:3.12-1ubuntu0.1
released
trusty
Fixed 1:3.3-1ubuntu0.1~esm1
released
xenial
Fixed 1:3.3-3ubuntu0.1~esm1
released