CVE-2022-20001 Injection in fish
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
Description
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.
Upgrade path
19 packages: 16 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/fish(Alpine v3.16) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| alpine/fish(Alpine v3.17) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| alpine/fish(Alpine v3.18) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| alpine/fish(Alpine v3.19) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| alpine/fish(Alpine v3.20) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| alpine/fish(Alpine v3.21) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| alpine/fish(Alpine v3.22) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| alpine/fish(Alpine v3.23) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| alpine/fish(Alpine v3.24) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 | Fixed |
| debian/fish(Debian 12) | < 3.4.0+ds-1 | 3.4.0+ds-1 | Fixed |
| debian/fish(Debian 13) | < 3.4.0+ds-1 | 3.4.0+ds-1 | Fixed |
| debian/fish(Debian 14) | < 3.4.0+ds-1 | 3.4.0+ds-1 | Fixed |
| fishshell fish | >= 3.1.0, <= 3.3.1 | after 3.3.1 | Fixed |
| ubuntu/fish(Ubuntu 22.04) | < 3.3.1+ds-3ubuntu0.1~esm1 | 3.3.1+ds-3ubuntu0.1~esm1 | Fixed |
| ubuntu/fish(Ubuntu Pro 20.04) | < 3.1.0-1.2ubuntu0.1~esm1; = 3.0.2-2; = 3.1.0-1; = 3.1.0-1.1 +1 more | 3.1.0-1.2ubuntu0.1~esm1 | Fixed |
| ubuntu/fish(Ubuntu Pro 22.04) | < 3.3.1+ds-3ubuntu0.1~esm1; = 3.1.2-3ubuntu1; = 3.3.1+ds-2; = 3.3.1+ds-3 | 3.3.1+ds-3ubuntu0.1~esm1 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 35; = 36 | No fix listed | Versions listed |
| fish-shell | = >= 3.1.0, < 3.4.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| fish-shell | = >= 3.1.0, < 3.4.0 | No fix listed |
| ubuntu/fish(Ubuntu:22.04) | < 3.3.1+ds-3ubuntu0.1~esm1 | 3.3.1+ds-3ubuntu0.1~esm1 |
| fishshell fish | >= 3.1.0, <= 3.3.1 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| debian/fish(Debian:12) | < 3.4.0+ds-1 | 3.4.0+ds-1 |
| debian/fish(Debian:14) | < 3.4.0+ds-1 | 3.4.0+ds-1 |
| debian/fish(Debian:13) | < 3.4.0+ds-1 | 3.4.0+ds-1 |
| ubuntu/fish(Ubuntu:Pro:20.04) | < 3.1.0-1.2ubuntu0.1~esm1 | 3.1.0-1.2ubuntu0.1~esm1 |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.0.2-2 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.1.0-1 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.1.0-1.1 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.1.0-1.2 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:22.04) | < 3.3.1+ds-3ubuntu0.1~esm1 | 3.3.1+ds-3ubuntu0.1~esm1 |
| ubuntu/fish(Ubuntu:Pro:22.04) | = 3.1.2-3ubuntu1 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:22.04) | = 3.3.1+ds-2 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:22.04) | = 3.3.1+ds-3 | No fix listed |
| alpine/fish(Alpine:v3.16) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
| alpine/fish(Alpine:v3.17) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
| alpine/fish(Alpine:v3.18) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
| alpine/fish(Alpine:v3.19) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
| alpine/fish(Alpine:v3.20) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
| alpine/fish(Alpine:v3.21) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
| alpine/fish(Alpine:v3.22) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/fish(Alpine:v3.23) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
| alpine/fish(Alpine:v3.24) | >= 3.1.0, < 3.4.0-r0 | 3.4.0-r0 |
References
- Debian Security Tracker CVE-2022-20001 vendor-advisory
- github.com issue-tracking third-party-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- FEDORA-2022-443c5ec2dd vendor-advisory
- FEDORA-2022-cd2c5e0634 vendor-advisory
- DSA-5234 third-party-advisory vendor-advisory
- GLSA-202309-10 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5367-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- github.com issue-tracking