- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- fish Debian 14, Debian 13, Debian 12 3.4.0+ds-1
debian advisories DEBIAN-CVE-2022-20001
- fish Ubuntu Pro 20.04 LTS 3.1.0-1.2ubuntu0.1~esm1
- fish Ubuntu Pro 22.04 LTS 3.3.1+ds-3ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-20001
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- fish3 Package Hub 15 SP3, openSUSE Leap 15.3 3.3.1-bp153.2.10.1
opensuse advisories openSUSE-SU-2022:0096-1
- fish Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 3.4.0-r0
alpine advisories ALPINE-CVE-2022-20001
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/fish-shell/fish-shell#8589 pull request
- github.com/fish-shell/fish-shell/releases/tag/3.4.0 release
Is CVE-2022-20001 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-20001 updated cvss 7.8
fish: Arbitrary Code Execution
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
1.48% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected products
- fish-shell fish-shell
Classification
References
-
github.com
/fish-shell/fish-shell/pull/8589
patch, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TRNMYS2LKB6TKOOBQQRSRQICDMWLZ4QL/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/BPZ7JV22DSZB5LNUCUEJ2HO3PKM2TVVK/
vendor-advisory
-
debian.org
/security/2022/dsa-5234
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/202309-10
vendor-advisory
-
github.com
/fish-shell/fish-shell/security/advisories/GHSA-pj5f-6vxj-f5mq
third-party-advisory
-
github.com
/fish-shell/fish-shell/releases/tag/3.4.0
release-notes, third-party-advisory
Sources
- CVE List CVE-2022-20001
- NVD CVE-2022-20001
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.