CVE-2022-20001

HighCVSS 7.8/10Last modified Jun 17, 2026

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Mar 14, 2022
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2022

CVE-2022-200027.8In incfs, there is a possible way of mounting on arbitrary paths due to a missing permission check. This could lead to local escalation of pCVE-2022-200047.8In checkSlicePermission of SliceManagerService.java, it is possible to access any slice URI due to improper input validation. This could leaCVE-2022-200057.8In validateApkInstallLocked of PackageInstallerSession.java, there is a way to force a mismatch between running code and a parsed APK . ThisCVE-2022-200067.0In several functions of KeyguardServiceWrapper.java and related files,, there is a possible way to briefly view what's under the lockscreen CVE-2022-200077.0In startActivityForAttachedApplicationIfNeeded of RootWindowContainer.java, there is a possible way to overlay an app that believes it's stiCVE-2022-200084.6In mmc_blk_read_single of block.c, there is a possible way to read kernel heap memory due to uninitialized data. This could lead to local inCVE-2022-200096.8In various functions of the USB gadget subsystem, there is a possible out of bounds write due to a missing bounds check. This could lead to CVE-2022-20018.8The DX Share Selection plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including 1.4. This is due toCVE-2022-200106.5In l2cble_process_sig_cmd of l2c_ble.cc, there is a possible out of bounds read due to an incorrect bounds check. This could lead to remote CVE-2022-200115.5In getArray of NotificationManagerService.java , there is a possible leak of one user notifications to another due to missing check. This coCVE-2022-200127.8In mdp driver, there is a possible memory corruption due to an integer overflow. This could lead to local escalation of privilege with no adCVE-2022-200136.4In vow driver, there is a possible memory corruption due to a race condition. This could lead to local escalation of privilege with System e
CVE-2022-20001: High severity, CVSS 7.8 | Vulnix