CVEfocus › CVE database › CVE-2023-49284

CVE-2023-49284Command substitution output can trigger shell expansion in fish shell

CVSS 3.9 LowEPSS 0.4% (higher than 22% of CVEs)Published 2023-12-04Updated 2025-02-13Assigner: GitHub_M

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.

CWE-436

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
3Fix pending
2Under investigation
4Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10fishFix pendingUBUNTU-CVE-2023-49284
Ubuntu 26.04fishUnder investigationUBUNTU-CVE-2023-49284
Ubuntu 25.10fishWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-49284
Ubuntu 24.04fishUnder investigationUBUNTU-CVE-2023-49284
Ubuntu 22.04fishFix pendingUBUNTU-CVE-2023-49284
Ubuntu 20.04fishFix pendingUBUNTU-CVE-2023-49284
Ubuntu 18.04fishWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-49284
Ubuntu 16.04fishWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-49284
Ubuntu 14.04fishWill not fix
Ubuntu decided not to fix this in this release
Debian 14fishFixed3.6.4-1DEBIAN-CVE-2023-49284
Debian 13fishFixed3.6.4-1DEBIAN-CVE-2023-49284
Debian 12fishFixed3.6.0-3.1+deb12u1DEBIAN-CVE-2023-49284

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.