CVE-2022-20001
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
8cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
- osv-coords2 versionspkg:rpm/opensuse/fish3&distro=openSUSE%20Leap%2015.3pkg:rpm/suse/fish3&distro=SUSE%20Package%20Hub%2015%20SP3
< 3.3.1-bp153.2.10.1+ 1 more
- (no CPE)range: < 3.3.1-bp153.2.10.1
- (no CPE)range: < 3.3.1-bp153.2.10.1
- Range: >= 3.1.0, < 3.4.0
Patches
Vulnerability mechanics
References
7- github.com/fish-shell/fish-shell/pull/8589nvdPatchThird Party Advisory
- github.com/fish-shell/fish-shell/releases/tag/3.4.0nvdRelease NotesThird Party Advisory
- github.com/fish-shell/fish-shell/security/advisories/GHSA-pj5f-6vxj-f5mqnvdThird Party Advisory
- www.debian.org/security/2022/dsa-5234nvdThird Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BPZ7JV22DSZB5LNUCUEJ2HO3PKM2TVVK/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TRNMYS2LKB6TKOOBQQRSRQICDMWLZ4QL/nvd
- security.gentoo.org/glsa/202309-10nvd
News mentions
0No linked articles in our index yet.