CVE-2026-121717

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

Published Nov 17, 2026 CVSS 3.1 · 5 Medium EPSS < 1% KEV · Not listed
Description
fzf is a command-line fuzzy finder. Prior to 0.74.5, trigger-driven zsh completion in shell/completion.zsh uses _fzf_feed_fifo to create a FIFO at the predictable shared path ${TMPDIR:-/tmp}/fzf-complete-fifo-$$ and continues after removal or creation errors. On a multi-user host, a local attacker can pre-create that path as a symlink so the victim's completion stream overwrites a victim-writable file, potentially enabling code execution when that file is later sourced. A pre-created FIFO can instead disclose a bounded stream of completion candidates or block completion. On default modern hosts, fs.protected_symlinks blocks the overwrite variant, and protected_fifos and protected_regular further limit the FIFO disclosure and blocking variants, so exploitation depends on the relevant kernel protections being disabled and on the victim invoking the affected completion. This issue is fixed in version 0.74.5.

Analysis

AI-generated

Technical impact

The vulnerability in fzf's zsh completion creates a predictable FIFO at ${TMPDIR:-/tmp}/fzf-complete-fifo-$$ that an attacker on a multi‑user host can pre‑create as a symlink to a writable file. When the victim triggers the completion, the FIFO writes data that overwrites the symlink target, potentially replacing user‑writable files. If the overwritten file is later sourced, the attacker could run arbitrary code with the victim’s privileges. The flaw arises from insecure temporary file handling without proper permission checks.

Affected Systems

This weakness affects the fzf command‑line fuzzy finder distributed by junegunn, impacting any installation older than version 0.74.5. Systems running shared fzf environments without kernel protection settings are the primary risk area.

Risk and Exploitability

The CVSS score of 5 indicates a medium severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog. Exploitability requires a local user on a host where kernel hardening options such as fs.protected_symlinks, protected_fifos, and protected_regular are disabled, and where the victim has enabled the affected zsh completion. The attack surface is therefore limited, but the potential for code execution remains significant if the conditions are met.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade fzf to version 0.74.5 or later, which eliminates the insecure FIFO creation.
  • Enable kernel hardening by setting fs.protected_symlinks=1, fs.protected_fifos=1, and fs.protected_regular=1 to block symlink and FIFO hijacking.
  • Disable the _fzf_feed_fifo completion script in zsh, or remove the completion source so the faulty path is never used.
  • If an upgrade cannot be performed immediately, set TMPDIR to a user‑specific directory to avoid the shared /tmp path and reduce the risk of symlink attacks.

Generated by OpenCVE AI on November 17, 2026 at 21:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Junegunn
Junegunn fzf
Vendors & Products Junegunn
Junegunn fzf
Type Values Removed Values Added
Description fzf is a command-line fuzzy finder. Prior to 0.74.5, trigger-driven zsh completion in shell/completion.zsh uses _fzf_feed_fifo to create a FIFO at the predictable shared path ${TMPDIR:-/tmp}/fzf-complete-fifo-$$ and continues after removal or creation errors. On a multi-user host, a local attacker can pre-create that path as a symlink so the victim's completion stream overwrites a victim-writable file, potentially enabling code execution when that file is later sourced. A pre-created FIFO can instead disclose a bounded stream of completion candidates or block completion. On default modern hosts, fs.protected_symlinks blocks the overwrite variant, and protected_fifos and protected_regular further limit the FIFO disclosure and blocking variants, so exploitation depends on the relevant kernel protections being disabled and on the victim invoking the affected completion. This issue is fixed in version 0.74.5.
Title fzf: Predictable FIFO path in zsh completion allows local symlink attack / arbitrary file overwrite as the victim user (_fzf_feed_fifo)
Weaknesses CWE-377
CWE-59
References
Metrics cvssV3_1

{'score': 5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:N'}

Weaknesses
  • CWE-377

    Insecure Temporary File

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 17, 2026, 7:46 PM
Reserved
Nov 3, 2026, 8:41 PM
Status
Received
Published
Nov 17, 2026, 8:17 PM
Modified
Nov 17, 2026, 8:17 PM