Skip to content
OpenAdvisories
Low · 3.9 CVE-2023-49284 EUVD-2023-53277

Command substitution output can trigger shell expansion in fish shell

Published Dec 4, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

Description

fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family. fish shell uses certain Unicode non-characters internally for marking wildcards and expansions. It will incorrectly allow these markers to be read on command substitution output, rather than transforming them into a safe internal representation. While this may cause unexpected behavior with direct input (for example, echo \UFDD2HOME has the same output as echo $HOME), this may become a minor security problem if the output is being fed from an external program into a command substitution where this output may not be expected. This design flaw was introduced in very early versions of fish, predating the version control system, and is thought to be present in every version of fish released in the last 15 years or more, although with different characters. Code execution does not appear to be possible, but denial of service (through large brace expansion) or information disclosure (such as variable expansion) is potentially possible under certain circumstances. fish shell 3.6.2 has been released to correct this issue. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected products

VendorProductAffectedFixed
fish-shell fish-shell < 3.6.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 fish 3.6.4-1 —
Debian 13 fish 3.6.4-1 —
Debian 12 fish 3.6.0-3.1+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 fish No fix yet —
Ubuntu 26.04 LTS fish No fix yet —
Ubuntu 25.10 fish No fix yet —
Ubuntu 24.04 LTS fish No fix yet —
Ubuntu 18.04 LTS fish No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS fish No fix yet —
Ubuntu Pro 22.04 LTS fish No fix yet —
Ubuntu Pro 20.04 LTS fish No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 fish 3.3.1-bp155.4.3.1 openSUSE-SU-2023:0405-1
SUSE Package Hub 15 SP4 fish 3.3.1-bp154.3.3.1 openSUSE-SU-2023:0404-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed fish 3.6.4-1.1 openSUSE-SU-2024:13501-1
openSUSE Leap 15.5 fish 3.3.1-bp155.4.3.1 openSUSE-SU-2023:0405-1
openSUSE Leap 15.4 fish 3.3.1-bp154.3.3.1 openSUSE-SU-2023:0404-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) fish 3.6.2-1 —

Advisories 3

References