CVE-2022-20001: fish is a command line shell
CVE-2022-20001 is a high-severity flaw (CVSS 7.8) affecting fish, fedora, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
fish is a command line shell. fish version 3.1.0 through version 3.3.1 is vulnerable to arbitrary code execution. git repositories can contain per-repository configuration that change the behavior of git, including running arbitrary commands. When using the default configuration of fish, changing to a directory automatically runs `git` commands in order to display information about the current repository in the prompt. If an attacker can convince
Why this priority
- High severity
- On your watchlist
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-20001?
fish: upgrade to newer than 3.3.1; fedora: mitigate or apply the listed mitigation; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-20001 being exploited?
CVE-2022-20001 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-20001 affect?
CVE-2022-20001 affects fish, fedora, debian linux. Severity is high (CVSS 7.8). fish is a command line shell. fish version 3.1.0 through version 3.3.1 is vulnerable to arbitrary code execution. git repositories can contain per-repository configuration that change the behavior of git, including running arbitrary command
How urgent is CVE-2022-20001?
Priority 51/100. High severity; On your watchlist
Software pages
Debian vulnerabilities · Git vulnerabilities
Related CVEs
- CVE-2023-49284 LOW 3.9 UPGRADE fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family
- CVE-2014-3856 HIGH 7.0 UPGRADE The funced function in fish (aka fish-shell) 1.23.0 before 2.1.1 does not properly create temporary files, whi
- CVE-2014-3219 HIGH 7.8 UPGRADE MITIGATE fish before 2.1.1 allows local users to write to arbitrary files via a symlink attack on (1) /tmp/fishd.log.%s
- CVE-2014-2914 CRITICAL 9.8 UPGRADE fish (aka fish-shell) 2.0.0 before 2.1.1 does not restrict access to the configuration service (aka fish_confi
- CVE-2014-2906 HIGH 7.0 UPGRADE The psub function in fish (aka fish-shell) 1.16.0 before 2.1.1 does not properly create temporary files, which