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

- Severity: Low 3.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-04T23:46:35.567Z
- Modified: 2026-06-17T06:35:45.940Z
- Weaknesses: CWE-436
- 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.

(As written by CVE List.)

## Affected

- fish-shell fish-shell: < 3.6.2
- fishshell fish: before 3.6.2

## Every score

- GitHub_M: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L`
- NVD: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H`

## References

- <https://github.com/fish-shell/fish-shell/security/advisories/GHSA-2j9r-pm96-wp4f> (exploit, vendor-advisory)
- <https://github.com/fish-shell/fish-shell/commit/09986f5563e31e2c900a606438f1d60d008f3a14> (patch)
- <http://www.openwall.com/lists/oss-security/2023/12/08/1>

## Sources

- CVE List: [CVE-2023-49284](https://www.cve.org/CVERecord?id=CVE-2023-49284), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-49284](https://nvd.nist.gov/vuln/detail/CVE-2023-49284), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-49284 · Whole record: https://cve.day/CVE-2023-49284.json · Rebuilt by cve.day 2026-11-25T22:58:30.945Z
