Junegunn fzf
fzf: Arbitrary command execution via bash arithmetic expansion on unvalidated layout size in fzf-tmux (-l/-u attached value)
fzf is a command-line fuzzy finder. Prior to 0.74.5, bin/fzf-tmux validates separately supplied layout sizes but does not validate attached -l and -u layout values before Bash arithmetic expansion, allowing command substitution in a crafted operand to execute as the invoking user during option parsing. The same validation failure lets space-bearing popup geometry options -x, -y, -w, -h, and -p reach an unquoted tmux popup option string and inject additional tmux flags. Exploitation requires less-trusted project configuration, a wrapper, or a plugin to supply the poisoned value and requires the victim to invoke fzf-tmux; normal values are usually trusted, and the script has been superseded by built-in tmux options. This issue is fixed in version 0.74.5.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.74.5
Fixed in 0.74.5
Mitigation
Upgrade fzf to 0.74.5 or later.
References
- Vendor advisory github.com/junegunn/fzf/security/advisories/GH…
- Patch github.com/junegunn/fzf/commit/f126ff29549e098…
- Release notes github.com/junegunn/fzf/releases/tag/v0.74.5
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.