
CVE catalog
CVE-2022-20001
fish: CVE-2022-20001
- Severity
- High · CVSS 7.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.48% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | fish | sid | 4.9.3-1 | fixed |
| Debian | fish | forky | 4.9.3-1 | fixed |
| Debian | fish | trixie | 4.0.2-1 | fixed |
| Debian | fish | bookworm | 3.6.0-3.1+deb12u1 | fixed |
| Ubuntu | fish | pro | 3.1.2-3ubuntu1 | vulnerable |
| Ubuntu | fish | pro | 3.3.1+ds-2 | vulnerable |
| Ubuntu | fish | pro | 3.3.1+ds-3 | vulnerable |
| Ubuntu | fish | pro | 3.3.1+ds-3ubuntu0.1~esm1 | fixed |
| Ubuntu | fish | pro | 3.1.2-3ubuntu1 | vulnerable |
| Ubuntu | fish | pro | 3.3.1+ds-2 | vulnerable |
| Ubuntu | fish | pro | 3.3.1+ds-3 | vulnerable |
| Ubuntu | fish | pro | 3.3.1+ds-3ubuntu0.1~esm1 | fixed |
| Suse | fish3 | package hub 15 sp3 | 3.3.1-bp153.2.10.1 | fixed |
| Opensuse | fish3 | leap 15.3 | 3.3.1-bp153.2.10.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | fish | source | sid | 3.4.0+ds-1 | not yet assigned | Not reported | Not reported |
| Debian | fish | source | forky | 3.4.0+ds-1 | not yet assigned | Not reported | Not reported |
| Debian | fish | source | trixie | 3.4.0+ds-1 | not yet assigned | Not reported | Not reported |
| Debian | fish | source | bookworm | 3.4.0+ds-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | fish | deb | pro | 3.3.1+ds-3ubuntu0.1~esm1 | Not reported | USN-5367-1 | Not reported |
| Ubuntu | fish | deb | pro | 3.3.1+ds-3ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2022-20001 | Not reported |
| Suse | fish3 | rpm | package hub 15 sp3 | 3.3.1-bp153.2.10.1 | Not reported | OPENSUSE-SU-2022:0096-1 | Not reported |
| Opensuse | fish3 | rpm | leap 15.3 | 3.3.1-bp153.2.10.1 | Not reported | OPENSUSE-SU-2022:0096-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [fish]Fixed
Details (2)
3.6.0-3.1+deb12u1· amd64 · bookwormFixed · Fixed:
3.4.0+ds-1dsa · fish · debian · bookworm
3.6.0-3.1+deb12u1· arm64 · bookwormFixed · Fixed:
3.4.0+ds-1dsa · fish · debian · bookworm
- [fish-common]Fixed
Source package: [fish]
Details (2)
3.6.0-3.1+deb12u1· all · bookwormFixed · Fixed:
3.4.0+ds-1dsa · fish · debian · bookworm
3.6.0-3.1+deb12u1· all · bookwormFixed · Fixed:
3.4.0+ds-1dsa · fish · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2022_0096-1.json]
- [https://osv.dev/vulnerability/DSA-5234-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-20001]
- [https://osv.dev/vulnerability/USN-5367-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2022:0096-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-20001]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]