2.1low
Heap-based Buffer Overflow in GNU diffutils
- Severity
- 2.1low CVSS:4.0 by CERT-PL
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CERT-PL
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| GNU diffutils | up to 3.12 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
La herramienta diff3 de GNU diffutils es vulnerable a un desbordamiento de búfer basado en montón debido a múltiples desbordamientos de enteros con signo en los cálculos de mapeo de líneas. La aritmética incorrecta al mapear rangos de líneas puede resultar en que se utilicen valores corruptos para la asignación de memoria y los límites de bucle. Al procesar una salida diff manipulada, estos desbordamientos pueden causar que la aplicación asigne memoria insuficiente y posteriormente realice escrituras fuera de límites durante el procesamiento interno. Un atacante que puede controlar la salida del programa diff utilizado por diff3 (por ejemplo, a través de --diff-program apuntando a un script malicioso) puede desencadenar escrituras fuera de límites, resultando en un fallo y potencialmente ejecución remota de código dependiendo del entorno. Este problema ha sido solucionado en el commit 9ff04d5b84743e331e80b589335a52c5480d1815 NOTA: Los mantenedores del proyecto afirman que esto no es un problema de seguridad. Afirman que el peor resultado que este problema puede causar es un fallo de diff y que no puede ser utilizado para escalar privilegios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-53910 changed 2026-07-27 | CVE Terms of Use |
| NVD | CVE-2026-53910 changed 2026-10-24 | Public domain |