CVE-2026-121716: fzf: Arbitrary command execution via bash arithmetic expansion on unvalidated layout size in fzf-tmux (-l/-u attached value)
Published 2026-11-19 · Updated 2026-11-23 · Also known as GHSA-w6x2-f5m4-xw82, GO-2026-7008
Summary
A command injection vulnerability exists in the `bin/fzf-tmux` script of the `fzf` package due to unvalidated option parsing leading to bash arithmetic expansion and tmux flag injection. Security and engineering teams using `github.com/junegunn/fzf` should update their dependency to a patched release.
Who is affected
Environments executing the `bin/fzf-tmux` wrapper script are affected when option parameters such as `-l`, `-u`, or popup geometry flags receive input derived from untrusted sources. An attacker capable of supplying crafted layout sizes can achieve arbitrary command execution under the privileges of the invoking user. In standard usage, layout arguments are hardcoded or controlled by trusted users, making vulnerable data flows uncommon.
Exploitability
The vulnerability carries a CVSS 3.1 base score of 7.0 (High) with a Local attack vector, High attack complexity, no privileges required, and User Interaction required. EPSS rates the probability of exploitation at 0.003 (0.182 percentile), and CISA KEV indicates it is not actively exploited in the wild.
Remediation
- Upgrade the Go module `github.com/junegunn/fzf` to version 0.74.5 or higher.
- Migrate legacy invocations of `bin/fzf-tmux` to use the native `--tmux` or `--popup` flags built directly into `fzf`.
How to check your project
- Inspect `go.mod` files or run `go list -m github.com/junegunn/fzf` to verify if the dependency version is lower than 0.74.5.
- Audit shell scripts and wrapper configurations for calls to `bin/fzf-tmux` that pass unvalidated attached options such as `-l` or `-u`.
Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/junegunn/fzf |
>= 0, < 0.74.5 | 0.74.5 | go get github.com/junegunn/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
| Attack vector | Local |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What is the root cause of CVE-2026-121716?
The `bin/fzf-tmux` script fails to validate attached option arguments (such as `-l50`). These values reach bash arithmetic evaluation `$((max - size))`, where inputs like `a[$(cmd)]` trigger command execution during argument parsing.
Is this vulnerability being actively exploited?
No. According to CISA Known Exploited Vulnerabilities data, there is no record of active exploitation in the wild.
Does using the built-in fzf `--tmux` option trigger this issue?
No. The flaw is contained specifically within option parsing of the external `bin/fzf-tmux` wrapper script, which was superseded by native `--tmux` and `--popup` flags in `fzf` 0.53.0.
Original advisory description
References
- WEB https://github.com/junegunn/fzf/security/advisories/GHSA-w6x2-f5m4-xw82
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-121716
- WEB https://github.com/junegunn/fzf/commit/f126ff29549e0983f571fbc32dddcfbede251aa7
- PACKAGE https://github.com/junegunn/fzf
- WEB https://github.com/junegunn/fzf/releases/tag/v0.74.5
Source records: GHSA-w6x2-f5m4-xw82, GO-2026-7008 (OSV.dev) · EPSS by FIRST, 2026-11-26.