Threat reportVulnerabilityTL-2026-1623
CVE-2026-53910: Heap-Based Buffer Overflow in GNU diffutils diff3 (Signed Integer Overflow)
GNU diffutils diff3 (all versions through 3.12) contains a heap-based buffer overflow rooted in multiple signed integer overflows in its line-mapping calculations. When diff3 invokes a diff program (default or a custom binary supplied via --diff-program) whose output is attacker-controlled, corrupted allocation-size and loop-bound arithmetic causes under-allocated heap buffers and subsequent out-of-bounds writes.
Key facts
| Identifiers | TL-2026-1623, CVE-2026-53910, CVE-2026-40467, CVE-2026-56288 |
|---|---|
| Severity | MEDIUM |
| EPSS | CVE-2026-53910: 0.3% (24.3th percentile); CVE-2026-40467: 0.2% (10.7th percentile); CVE-2026-56288: 0.1% (1.4th percentile) |
| Affected products | GNU Project diffutils (diff3) |
| Weaknesses (CWE) | CWE-190, CWE-122, CWE-787 |
| MITRE ATT&CK techniques | T1036 Masquerading, T1059 Command and Scripting Interpreter, T1068 Exploitation for Privilege Escalation, T1082 System Information Discovery, T1195 Supply Chain Compromise, T1203 Exploitation for Client Execution, T1211 Exploitation for Stealth, T1499 Endpoint Denial of Service, T1518 Software Discovery, T1554 Compromise Host Software Binary, T1574 Hijack Execution Flow, T1587 Develop Capabilities and 1 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | software-development, technology, open-source-ecosystem, devops-ci-cd |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 8 cited sources |
Detection coverage
As of 2026-07-22, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1623 across Splunk SPL, Microsoft KQL and Sigma, covering 16 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: diff3 Invoked With Non-Standard --diff-program Argument (CVE-2026-53910 Exploitation Attempt)
Detects diff3 process launches where --diff-program/-D points at a relative path, a non-standard directory, or a script interpreter rather than the trusted system diff binary, consistent with the primary exploitation vector for CVE-2026-53910's heap-based buffer overflow.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1195, T1203
- Data sources: sysmon, linux_auditd, endpoint_process_creation
- Severity: high
- Confidence: high
Splunk SPL
index=endpoint sourcetype="Sysmon:Linux" OR sourcetype="linux_secure" EventCode=1
| eval proc_name=lower(process_name)
| where match(proc_name, "diff3$")
| where match(process, "--diff-program=") OR match(process, "-D ")
| rex field=process "--diff-program=(?<diff_program_path>[^\s]+)"
| where NOT match(diff_program_path, "^/usr/bin/diff$") AND NOT match(diff_program_path, "^/bin/diff$")
| eval risk_reason="diff3 invoked with non-standard --diff-program, potential CVE-2026-53910 exploitation attempt"
| table _time, host, user, process_name, process, diff_program_path, parent_process_name, risk_reason
| sort -_timeMicrosoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName has "diff3"
| where ProcessCommandLine has "--diff-program=" or ProcessCommandLine has "-D "
| extend DiffProgramPath = extract(@"--diff-program=(\S+)", 1, ProcessCommandLine)
| where DiffProgramPath !in ("/usr/bin/diff", "/bin/diff") and isnotempty(DiffProgramPath)
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, DiffProgramPath, InitiatingProcessFileName
| order by Timestamp descSigma
title: diff3 Invoked With Non-Standard diff-program Argument (CVE-2026-53910)
id: 8f2e1a4c-6b3d-4e9f-9a1c-2d5e7f8b3c4a
status: experimental
description: Detects diff3 invocation with a --diff-program/-D argument pointing at a non-standard or relative-path binary, consistent with CVE-2026-53910 heap-based buffer overflow exploitation attempts.
references:
- https://cert.pl/en/posts/2026/07/CVE-2026-53910/
author: Threadlinqs Team
date: 2026-07-22
tags:
- attack.initial-access
- attack.t1195
- attack.execution
- attack.t1203
- cve.2026.53910
logsource:
category: process_creation
product: linux
detection:
selection_proc:
Image|endswith: '/diff3'
selection_arg:
CommandLine|contains:
- '--diff-program='
- '-D '
filter_trusted_path:
CommandLine|contains:
- '--diff-program=/usr/bin/diff'
- '--diff-program=/bin/diff'
condition: selection_proc and selection_arg and not filter_trusted_path
falsepositives:
- Legitimate custom diff tooling pinned to an untrusted-looking but authorized path
level: highKnown false positives:
- Legitimate CI/CD or build tooling that intentionally pins --diff-program to an authorized, non-default but trusted path
Tuning notes: Maintain an allowlist of approved trusted --diff-program absolute paths per environment (e.g. hardened CI runner images) and extend filter_trusted_path/DiffProgramPath exclusion accordingly; alert only on paths outside that allowlist.
- Git Merge Driver / CI Pipeline Invoking diff3 With Untrusted Repository-Controlled Arguments · unlock with TL Creds
- New or Modified 'diff' Binary Written to a Directory Prepended to PATH Prior to diff3 Invocation · unlock with TL Creds
- Oversized/Anomalous Hunk-Count Values in diff Output Consumed by diff3 (Integer-Overflow Trigger Pattern) · unlock with TL Creds
- diff3 Software/Package Discovery Preceding CVE-2026-53910 Exploitation Attempt · unlock with TL Creds
- Masquerading Diff Replacement Binary Distributed/Downloaded to Host (Capability Staging) · unlock with TL Creds
- diff3 Invoked in Merge Mode With Untrusted diff-program in Same Session as Privilege Escalation/Persistence Indicators · unlock with TL Creds
- diff3 Child Process 'diff' Resolved Outside Standard Binary Paths (PATH Hijack) · unlock with TL Creds
- diff3/diff Abnormal Termination (SIGSEGV/SIGABRT) Consistent With Heap Corruption · unlock with TL Creds
Indicators of compromise
As of 2026-07-22, Threadlinqs Intelligence tracks 16 indicators of compromise for TL-2026-1623.
Sample indicators (1 of 16)
- File hash:
9ff04d5b84743e331e80b589335a52c5480d1815
Defanged, TLP:CLEAR. Full set of 16 indicators: unlock with TL Creds.
Technical analysis
Fixed upstream in commit 9ff04d5b84743e331e80b589335a52c5480d1815.
CVE-2026-53910 affects GNU diffutils' diff3(1) utility, the three-way file/merge comparison tool shipped in essentially every Linux, BSD, and macOS (via Homebrew/coreutils replacements) distribution as part of the diffutils package (maintained by Jim Meyering and Paul Eggert, GPLv3+). diff3 works by internally invoking the `diff` program (or an alternate program supplied via the `--diff-program`/`-D` command-line option) to compute pairwise line differences between the three input files, then parses that diff output into internal line-mapping tables used to build the three-way merge. The vulnerability is a classic CWE-190 (signed integer overflow / wraparound) defect: when the parsed diff output describes line ranges or hunk counts large enough to overflow the signed integer arithmetic used to compute buffer sizes and array bounds for these line-mapping tables, the resulting (wrapped, often negative-turned-small or otherwise incorrect) values are used to size heap allocations. Because the allocation is undersized relative to what the subsequent write loop actually needs, diff3 writes past the end of the heap buffer -- a heap-based buffer overflow (CWE-122/CWE-787 consequence of the CWE-190 root cause).
Exploitation is conditional rather than unauthenticated/network-remote: an attacker must be able to control (or fully replace) the output that the invoked diff program returns to diff3. The most direct vector is a caller-supplied `--diff-program` pointing at an attacker-controlled script or binary that emits a crafted, oversized diff hunk description; a secondary vector is any environment where diff3 is scripted/wrapped and an attacker can influence the PATH or environment such that a malicious `diff` replacement is invoked instead of the legitimate GNU diff binary. This narrows the practical blast radius primarily to build systems, CI/CD merge-conflict tooling, version-control merge drivers (e.g. custom git merge drivers that shell out to diff3), and any automation pipeline that lets an untrusted party influence which diff program is invoked or its arguments. Where such control exists, the out-of-bounds heap write can range from a memory-corruption crash/DoS up to remote code execution, contingent on heap layout, allocator behavior, and platform mitigations (ASLR, hardened_malloc, fortify) at exploitation time.
The defect was reported to CERT Polska (CERT.PL) under coordinated vulnerability disclosure (CVD) by Michał Majchrowicz and Marcin Wyczechowski of AFINE Team, and published by CERT.PL on 2026-07-22 with the fix already merged upstream (commit 9ff04d5b84743e331e80b589335a52c5480d1815). No CVSS score is published by CERT.PL and none is yet present in the CVE.org/NVD record (NVD has not yet ingested/enriched the CVE as of this analysis -- API query for CVE-2026-53910 returned zero results). No public PoC or evidence of active/in-the-wild exploitation is stated by the source; CERT.PL frames this purely as a CVD-coordinated hardening fix. This CVE is part of a broader batch of CVD-coordinated CLI/GNU-utility disclosures credited to the same AFINE Team researchers via CERT.PL in the same window, including GNU patch (CVE-2026-56288 NULL pointer dereference / CVE-2026-56289 infinite loop, published 2026-07-09) and GNU gawk (CVE-2026-40467 through CVE-2026-40469, CVE-2026-40553), indicating a systematic fuzzing/audit sweep of common GNU text-processing utilities rather than an isolated one-off finding.
Remediation is to upgrade to a diffutils build that includes commit 9ff04d5b84743e331e80b589335a52c5480d1815 (post-3.12) once a tagged release incorporating the fix ships, or to cherry-pick/backport the patch for distro packages. Interim mitigation is to avoid invoking diff3 with attacker-influenceable `--diff-program` arguments or in contexts where PATH/binary substitution by an untrusted party is possible -- e.g. pin `--diff-program` to an absolute, trusted path and never allow untrusted input to construct the diff3 command line.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1036 Masquerading; T1211 Exploitation for Stealth; T1574 Hijack Execution Flow
Execution
T1059 Command and Scripting Interpreter; T1203 Exploitation for Client Execution
Privilege Escalation
T1068 Exploitation for Privilege Escalation
Discovery
T1082 System Information Discovery; T1518 Software Discovery
Initial Access
Impact
T1499 Endpoint Denial of Service
Persistence
T1554 Compromise Host Software Binary
Resource Development
Remediation
Patches
- Apply upstream commit 9ff04d5b84743e331e80b589335a52c5480d1815 to the diffutils source tree
- Update to the diffutils release that first incorporates this commit once tagged and published by distro package maintainers
Immediate actions
- Do not allow untrusted input to construct or influence the diff3 command line, especially the --diff-program/-D argument
- Pin --diff-program to an absolute, integrity-verified path rather than relying on PATH resolution
- Audit CI/CD pipelines, custom git merge drivers, and build scripts that invoke diff3 for any attacker-reachable control over the diff program or its output
- Restrict PATH and binary search order in automation contexts (CI runners, merge-driver hooks) to prevent diff binary substitution
Workarounds
- Avoid using --diff-program with any program whose output is not fully trusted
- Disable or sandbox automation paths that call diff3 with externally influenced arguments until patched
Longer-term hardening
- Track diffutils upstream releases and apply the fix once a tagged release incorporating commit 9ff04d5b84743e331e80b589335a52c5480d1815 is available
- Rebuild/repackage distro diffutils packages with the fix backported once distro maintainers publish updated packages
- Add fuzzing coverage for diff3's line-mapping/hunk-parsing logic to catch related integer-overflow classes of bugs
- Adopt hardened allocators (e.g. hardened_malloc) or compiler mitigations (FORTIFY_SOURCE, stack/heap canaries) on systems that invoke diff3 against untrusted diff output
Affected and fixed versions
- GNU Project — diffutils (diff3)
Vulnerable versions: through 3.12; 3.0; 3.1; 3.2; 3.3; 3.4; 3.5; 3.6; 3.7; 3.8
Fixed in: commit 9ff04d5b84743e331e80b589335a52c5480d1815 (post-3.12, unreleased tag as of disclosure)
Timeline
- CERT Polska publishes related AFINE Team CVD disclosures for GNU gawk (CVE-2026-40467 through CVE-2026-40469, CVE-2026-40553), part of the same GNU-utility research sweep.
- CERT Polska publishes related AFINE Team CVD disclosures for GNU patch (CVE-2026-56288 NULL pointer dereference, CVE-2026-56289 infinite loop).
- TL-Intel-Harness Researcher phase completes deep-dive analysis of CVE-2026-53910, cross-referencing the CERT.PL advisory, the diff3(1) manual page's --diff-program/-m/-e/-E option semantics, and the related AFINE Team/CERT.PL GNU-utility CVD batch (gawk, patch) to build the full research record.
- NVD REST API query for CVE-2026-53910 returns zero results at time of analysis, indicating the record has not yet been ingested/enriched by NIST NVD.
- TL-Intel-Harness ingests the CERT.PL advisory via the CERT Polska (CERT.PL) RSS feed and opens threat tracking TL-2026-1623.
- CERT Polska (CERT.PL) publishes the public advisory for CVE-2026-53910, describing the vulnerability, root cause, exploitation conditions, and fix commit; no CVSS score assigned in the advisory.
- Fix for the signed-integer-overflow / heap-buffer-overflow defect merged upstream into GNU diffutils as commit locked-ioc-1.
- Michał Majchrowicz and Marcin Wyczechowski of AFINE Team report the diff3 heap-based buffer overflow (CVE-2026-53910) to CERT Polska under coordinated vulnerability disclosure.
Sources cited
- CVE-2026-53910: Heap-based buffer overflow in GNU diffutils diff3 cert.pl · Advisory · 2026-07-22
- CERT Polska Coordinated Vulnerability Disclosure Policy cert.pl · Advisory · 2026-07-22
- CVE Record: CVE-2026-53910 CVE Program · Government advisory · 2026-07-22
- GNU Diffutils project homepage gnu.org · Vendor report · 2026-07-22
- GNU diffutils Git repository (Savannah) savannah.gnu.org · Vendor report · 2026-07-22
- GNU diffutils project summary (Savannah) savannah.gnu.org · Vendor report · 2026-07-22
- Vulnerabilities in GNU patch software (related AFINE/CERT.PL CVD batch) cert.pl · Research · 2026-07-09
- Vulnerabilities in GNU gawk software (related AFINE/CERT.PL CVD batch) cert.pl · Research · 2026-07-01
Previous and next in vulnerability
- Critical Meta IDOR Flaw in Support Case Infrastructure Exposed Customer Emails, Transcripts, and Internal Notes (Meta Horizon Managed Solutions / Meta.com Support) Previous report
- SolarWinds Serv-U 2026.3 Patches 16 Vulnerabilities (CVE-2026-28302 to CVE-2026-28321) Including Root RCE, IDOR-Chained Privilege Escalation, and Broken Access Control Next report
Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.