CVE & CISA-KEV Catalog

CVE-2022-20001

HIGHEPSS 73th pctl
7.8
CVSS v3
NVD

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.

How to fix

Remediation Available
fishDebian
Fixed in:3.4.0+ds-1CVE-2022-20001
Fixed in:3.4.0+ds-1CVE-2022-20001
Fixed in:3.4.0+ds-1CVE-2022-20001
fishUbuntu
Fixed in:3.1.0-1.2ubuntu0.1~esm1USN-5367-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:3.3.1+ds-3ubuntu0.1~esm1USN-5367-1
fish-commonUbuntu
Fixed in:3.1.0-1.2ubuntu0.1~esm1USN-5367-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:3.3.1+ds-3ubuntu0.1~esm1USN-5367-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

1.48%probability of exploitation in 30 days
73rdpercentile

Elevated risk: more likely to be exploited than 73% of all known CVEs.

References

Related Vulnerabilities

Other CWE-74 (Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2013-2251Critical9.8100%KEVFix
CVE-2023-22527Critical9.8100%KEV + RansomFix
CVE-2019-2725Critical9.8100%KEV + RansomFix
CVE-2022-46169Critical9.8100%KEVFix
CVE-2022-35914Critical9.8100%KEV-
CVE-2019-17558High7.599%KEVFix

Common questions

How do I fix CVE-2022-20001?

Published advisories record a fix for 3 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-20001 being actively exploited?

Not that we know of. CVE-2022-20001 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.5% is the estimated probability that it will be exploited in the next 30 days. That is higher than 73% of all scored CVEs.

How severe is CVE-2022-20001?

CVE-2022-20001 has a CVSS v3 base score of 7.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-20001 affect?

Published advisories record a fix for fish (Debian), fish (Ubuntu), fish-common (Ubuntu). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-20001
CVE-2022-20001 severity badge

Markdown

[![CVE-2022-20001](https://tridentstack.com/cve/badge/CVE-2022-20001.svg)](https://tridentstack.com/cve/CVE-2022-20001)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-20001"><img src="https://tridentstack.com/cve/badge/CVE-2022-20001.svg" alt="CVE-2022-20001"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.