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 a user to change their current directory into one controlled by the attacker, such as on a shared file system or extracted archive, fish will run arbitrary commands under the attacker's control. This problem has been fixed in fish 3.4.0. Note that running git in these directories, including using the git tab completion, remains a potential trigger for this issue. As a workaround, remove the `fish_git_prompt` function from the prompt.
Conclusion & alert: CVE-2022-20001 is rated Moderate Risk (56.6/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.42%). Core evidence: EPSS rose +1.14% over the last day, indicating growing attacker interest. Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.28% | 1.42% | +1.14% |
| 2 | 2026-03-26 | 0.41% | 0.28% | -0.13% |
| 3 | 2025-11-21 | — | 0.41% | — |
Full EPSS history (22 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.8 | 3.1 | HIGH |
|
1.8 | 5.9 | [email protected] |
| 7.8 | 3.1 | HIGH |
|
1.8 | 5.9 | [email protected] |
| 6.8 | 2.0 | MEDIUM |
|
8.6 | 6.4 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2022-20001: 1 source package rows (fish); 8 state rows across 8 repos (3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 7, open 1. | https://security.alpinelinux.org/vuln/CVE-2022-20001 |
debian
|
not yet assigned | CVE-2022-20001 not yet assigned priority: Debian including 1 source packages (fish), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2022-20001 |
gentoo
|
normal | CVE-2022-20001: 1 GLSA(s) (202309-10), 1 atom(s) (app-shells/fish); latest impact normal. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-20001 |
suse
|
high | CVE-2022-20001 severity important: SUSE including 8 source package names (fish, fish-3.4.0-1.1, …), 10 product×package rows across 5 product lines (SUSE Linux Enterprise Module for Containers 15 SP3, SUSE Linux Enterprise Server 16.0, … (5 product lines)): Fixed 8, Known Not Affected 2. | https://www.suse.com/security/cve/CVE-2022-20001/ |
ubuntu
|
medium | CVE-2022-20001 medium priority: Ubuntu including 1 source packages (fish), 14 status rows across 14 suites (bionic, focal, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 8, ignored 3, released 3. | https://ubuntu.com/security/CVE-2022-20001 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| fishshell | fish | >= 3.1.0, <= 3.3.1 | cpe:2.3:a:fishshell:fish:*:*:*:*:*:*:*:* |
| fedoraproject | fedora | 35 | cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
| fedoraproject | fedora | 36 | cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
| debian | debian_linux | 11.0 | cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |