All vulnerabilities

Go

CVE-2026-121717

fzf: Predictable FIFO path in zsh completion allows local symlink attack / arbitrary file overwrite as the victim user (_fzf_feed_fifo)

Severity
Medium 5.0
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.74.5
Exploit chance
0.2% in the next 30 daysHigher than 6% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Insecure temporary file (CWE-377)Link following (CWE-59)
Attack
Needs local access · Only under certain conditions · Needs a user account · Needs someone to click or open something
Attacker can
Read some data · Change data
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:N
Also known as
GHSA-7rj6-7pqx-v7rm
Sources
OSV.dev and GitHub

Description

shell/completion.zsh feeds every trigger-driven zsh completion through a FIFO at a predictable, PID-based path in shared /tmp (fzf-complete-fifo-$$), without checking the failure of rm -f/mkfifo. On a multi-user host, another local user can pre-create that path as a symlink to a victim-writable file (e.g. ~/.bashrc), causing the victim's own completion to overwrite it with the completion stream — with attacker-influenced content (e.g. via process names in ps output), escalating to code execution at the victim's next login. A pre-created plain FIFO instead leaks/blocks on the completion stream.

shell/completion.zsh (tag 0.74.4, commit a140afeb):

  • line ~246: fifo="${TMPDIR:-/tmp}/fzf-complete-fifo-$$" — predictable name; shell PIDs are low/guessable and a wide range can be pre-created.
  • lines 216-220, verbatim:

Attack modes (no race required):

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
github.com/junegunn/fzfGo · osv:Go:github.com/junegunn/fzf
  • Every version before 0.74.5

About github.com/junegunn/fzf

Vulnerabilities in github.com/junegunn/fzf

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for github.com/junegunn/fzf

References