CWE
436
Advisory Published
Updated

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

First published: Mon Dec 04 2023(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Fishshell Fish<3.6.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2023-49284?

    CVE-2023-49284 is a vulnerability in the fish shell that allows command substitution output to trigger shell expansion.

  • Which software is affected by CVE-2023-49284?

    The fish shell version up to and excluding 3.6.2 is affected by CVE-2023-49284.

  • How severe is CVE-2023-49284?

    CVE-2023-49284 has a severity rating of 6.6 (medium).

  • How can I fix CVE-2023-49284?

    Upgrade your fish shell to version 3.6.2 or newer to fix CVE-2023-49284.

  • Where can I find more information about CVE-2023-49284?

    You can find more information about CVE-2023-49284 at the following references: [Link 1](https://github.com/fish-shell/fish-shell/security/advisories/GHSA-2j9r-pm96-wp4f), [Link 2](https://github.com/fish-shell/fish-shell/commit/09986f5563e31e2c900a606438f1d60d008f3a14), [Link 3](http://www.openwall.com/lists/oss-security/2023/12/08/1).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203