CVE-2023-49284Command substitution output can trigger shell expansion in fish shell
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | fish | Fix pending | UBUNTU-CVE-2023-49284 | |
| Ubuntu 26.04 | fish | Under investigation | UBUNTU-CVE-2023-49284 | |
| Ubuntu 25.10 | fish | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-49284 | |
| Ubuntu 24.04 | fish | Under investigation | UBUNTU-CVE-2023-49284 | |
| Ubuntu 22.04 | fish | Fix pending | UBUNTU-CVE-2023-49284 | |
| Ubuntu 20.04 | fish | Fix pending | UBUNTU-CVE-2023-49284 | |
| Ubuntu 18.04 | fish | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-49284 | |
| Ubuntu 16.04 | fish | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-49284 | |
| Ubuntu 14.04 | fish | Will not fix Ubuntu decided not to fix this in this release | ||
| Debian 14 | fish | Fixed | 3.6.4-1 | DEBIAN-CVE-2023-49284 |
| Debian 13 | fish | Fixed | 3.6.4-1 | DEBIAN-CVE-2023-49284 |
| Debian 12 | fish | Fixed | 3.6.0-3.1+deb12u1 | DEBIAN-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.
- fish-shell: affected: < 3.6.2
References
- https://github.com/fish-shell/fish-shell/security/advisories/GHSA-2j9r-pm96-wp4f
- https://github.com/fish-shell/fish-shell/commit/09986f5563e31e2c900a606438f1d60d008f3a14
- http://www.openwall.com/lists/oss-security/2023/12/08/1
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.