Upstream information

CVE-2022-20001 at MITRE

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.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having important severity.

CVSS v2 Scores
  National Vulnerability Database
Base Score 6.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:P
Access Vector Network
Access Complexity Medium
Authentication None
Confidentiality Impact Partial
Integrity Impact Partial
Availability Impact Partial
CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 7.8 7.3
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Attack Vector Local Local
Attack Complexity Low Low
Privileges Required None Low
User Interaction Required Required
Scope Unchanged Unchanged
Confidentiality Impact High High
Integrity Impact High High
Availability Impact High High
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1197139 [RESOLVED / FIXED]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
SUSE Package Hub 15 SP3
  • fish3 >= 3.3.1-bp153.2.10.1
  • fish3-devel >= 3.3.1-bp153.2.10.1
Patchnames:
openSUSE-2022-96
openSUSE Leap 15.3
  • fish3 >= 3.3.1-bp153.2.10.1
  • fish3-devel >= 3.3.1-bp153.2.10.1
Patchnames:
openSUSE-2022-96
openSUSE Tumbleweed
  • fish >= 3.4.0-1.1
  • fish-devel >= 3.4.0-1.1
Patchnames:
openSUSE Tumbleweed GA fish-3.4.0-1.1


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification.

Product(s) Source package State
SUSE Enterprise Storage 7.1 fish Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3 fish Not affected
SUSE Linux Enterprise Module for Containers 15 SP3 fish Not affected
SUSE Linux Enterprise Server 15 SP3 fish Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 fish Not affected
SUSE Manager Proxy 4.2 fish Not affected
SUSE Manager Retail Branch Server 4.2 fish Not affected
SUSE Manager Server 4.2 fish Not affected
SUSE Package Hub 15 SP3 fish3 Released


SUSE Timeline for this CVE

CVE page created: Tue Mar 15 01:00:23 2022
CVE page last modified: Mon Nov 28 15:54:50 2022