CVE-2023-49284 Command substitution output can trigger shell expansion in fish shell
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
14 packages: 4 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/fish(Ubuntu 16.04) | = 2.2.0-2; = 2.2.0-3; All versions | No fix listed | No fix yet |
| ubuntu/fish(Ubuntu 18.04) | = 2.6.0-1; = 2.6.0-2; = 2.7.0-1; = 2.7.1-3 +1 more | No fix listed | No fix yet |
| ubuntu/fish(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/fish(Ubuntu 24.04) | = 3.6.1-1; = 3.6.4-1; = 3.7.0-1; All versions | No fix listed | No fix yet |
| ubuntu/fish(Ubuntu 25.10) | = 4.0.1-1; = 4.0.2-1; = 4.0.6-0ubuntu1; All versions | No fix listed | No fix yet |
| ubuntu/fish(Ubuntu 26.04) | = 4.0.6-0ubuntu1; = 4.2.1-3; = 4.2.1-3.1; = 4.2.1-3.2 +1 more | No fix listed | No fix yet |
| ubuntu/fish(Ubuntu 26.10) | = 4.2.1-3.2; = 4.7.1-2; = 4.7.1-2.1; = 4.9.3-1 +1 more | No fix listed | No fix yet |
| ubuntu/fish(Ubuntu Pro 20.04) | = 3.0.2-2; = 3.1.0-1; = 3.1.0-1.1; = 3.1.0-1.2 +2 more | No fix listed | No fix yet |
| ubuntu/fish(Ubuntu Pro 22.04) | = 3.1.2-3ubuntu1; = 3.3.1+ds-2; = 3.3.1+ds-3; = 3.3.1+ds-3ubuntu0.1~esm1 +1 more | No fix listed | No fix yet |
| debian/fish(Debian 12) | < 3.6.0-3.1+deb12u1; = 3.6.0-3.1 | 3.6.0-3.1+deb12u1 | Fixed |
| debian/fish(Debian 13) | < 3.6.4-1 | 3.6.4-1 | Fixed |
| debian/fish(Debian 14) | < 3.6.4-1 | 3.6.4-1 | Fixed |
| fishshell fish | < 3.6.2 | 3.6.2 | Fixed |
| fish-shell | = < 3.6.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/fish(Debian:12) | < 3.6.0-3.1+deb12u1 | 3.6.0-3.1+deb12u1 |
| debian/fish(Debian:12) | = 3.6.0-3.1 | No fix listed |
| debian/fish(Debian:13) | < 3.6.4-1 | 3.6.4-1 |
| debian/fish(Debian:14) | < 3.6.4-1 | 3.6.4-1 |
| fish-shell | = < 3.6.2 | No fix listed |
| ubuntu/fish(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/fish(Ubuntu:24.04) | All versions | No fix listed |
| fishshell fish | < 3.6.2 | 3.6.2 |
| ubuntu/fish(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/fish(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/fish(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/fish(Ubuntu:16.04) | = 2.2.0-2 | No fix listed |
| ubuntu/fish(Ubuntu:16.04) | = 2.2.0-3 | No fix listed |
| ubuntu/fish(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/fish(Ubuntu:18.04) | = 2.6.0-1 | No fix listed |
| ubuntu/fish(Ubuntu:18.04) | = 2.6.0-2 | No fix listed |
| ubuntu/fish(Ubuntu:18.04) | = 2.7.0-1 | No fix listed |
| ubuntu/fish(Ubuntu:18.04) | = 2.7.1-3 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.0.2-2 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.1.0-1 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.1.0-1.1 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.1.0-1.2 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:20.04) | = 3.1.0-1.2ubuntu0.1~esm1 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:22.04) | All versions | No fix listed |
Show 19 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/fish(Ubuntu:Pro:22.04) | = 3.1.2-3ubuntu1 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:22.04) | = 3.3.1+ds-2 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:22.04) | = 3.3.1+ds-3 | No fix listed |
| ubuntu/fish(Ubuntu:Pro:22.04) | = 3.3.1+ds-3ubuntu0.1~esm1 | No fix listed |
| ubuntu/fish(Ubuntu:24.04) | = 3.6.1-1 | No fix listed |
| ubuntu/fish(Ubuntu:24.04) | = 3.6.4-1 | No fix listed |
| ubuntu/fish(Ubuntu:24.04) | = 3.7.0-1 | No fix listed |
| ubuntu/fish(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/fish(Ubuntu:25.10) | = 4.0.1-1 | No fix listed |
| ubuntu/fish(Ubuntu:25.10) | = 4.0.2-1 | No fix listed |
| ubuntu/fish(Ubuntu:25.10) | = 4.0.6-0ubuntu1 | No fix listed |
| ubuntu/fish(Ubuntu:26.10) | = 4.2.1-3.2 | No fix listed |
| ubuntu/fish(Ubuntu:26.10) | = 4.7.1-2 | No fix listed |
| ubuntu/fish(Ubuntu:26.10) | = 4.7.1-2.1 | No fix listed |
| ubuntu/fish(Ubuntu:26.10) | = 4.9.3-1 | No fix listed |
| ubuntu/fish(Ubuntu:26.04) | = 4.0.6-0ubuntu1 | No fix listed |
| ubuntu/fish(Ubuntu:26.04) | = 4.2.1-3 | No fix listed |
| ubuntu/fish(Ubuntu:26.04) | = 4.2.1-3.1 | No fix listed |
| ubuntu/fish(Ubuntu:26.04) | = 4.2.1-3.2 | No fix listed |
References
- Debian Security Tracker CVE-2023-49284 vendor-advisory
- https://github.com/fish-shell/fish-shell/security/advisories/GHSA-2j9r-pm96-wp4f exploit issue-tracking vendor-advisory
- https://github.com/fish-shell/fish-shell/commit/09986f5563e31e2c900a606438f1d60d008f3a14 issue-tracking patch
- www.openwall.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking