Bug 1217808 (CVE-2023-49284) - VUL-0: CVE-2023-49284: fish: command substitution output can trigger shell expansion
Summary: VUL-0: CVE-2023-49284: fish: command substitution output can trigger shell ex...
Status: RESOLVED FIXED
Alias: CVE-2023-49284
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/387023/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-49284:4.4:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-05 08:17 UTC by SMASH SMASH
Modified: 2024-05-28 11:52 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2023-12-05 08:17:36 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-49284
https://github.com/fish-shell/fish-shell/security/advisories/GHSA-2j9r-pm96-wp4f
https://github.com/fish-shell/fish-shell/commit/09986f5563e31e2c900a606438f1d60d008f3a14
Comment 1 Carlos López 2023-12-05 08:23:16 UTC
This affects all versions we ship:
 - SUSE:SLE-15:Update/fish
 - openSUSE:Backports:SLE-15-SP4/fish
 - openSUSE:Backports:SLE-15-SP5/fish
 - SUSE:ALP:Source:Standard:1.0/fish
 - openSUSE:Factory/fish
Comment 2 OBSbugzilla Bot 2023-12-11 10:15:02 UTC
This is an autogenerated message for OBS integration:
This bug (1217808) was mentioned in
https://build.opensuse.org/request/show/1132456 Factory / fish
Comment 3 OBSbugzilla Bot 2023-12-11 11:25:02 UTC
This is an autogenerated message for OBS integration:
This bug (1217808) was mentioned in
https://build.opensuse.org/request/show/1132463 Factory / fish
Comment 5 Simon Lees 2023-12-13 02:01:28 UTC
Re assigning to the security team, all streams should be fixed. Note that I don't think we are using the `SUSE:SLE-15:Update/fish` version anywhere anymore, everything should be coming from the openSUSE versions in Package hub.
Comment 6 OBSbugzilla Bot 2023-12-13 02:25:03 UTC
This is an autogenerated message for OBS integration:
This bug (1217808) was mentioned in
https://build.opensuse.org/request/show/1132779 Backports:SLE-15-SP5 / fish
https://build.opensuse.org/request/show/1132780 Backports:SLE-15-SP4 / fish
Comment 9 Marcus Meissner 2023-12-16 17:04:57 UTC
openSUSE-SU-2023:0405-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1217808
CVE References: CVE-2023-49284
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP5 (src):    fish-3.3.1-bp155.4.3.1
Comment 10 Marcus Meissner 2023-12-16 17:05:14 UTC
openSUSE-SU-2023:0404-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1217808
CVE References: CVE-2023-49284
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP4 (src):    fish-3.3.1-bp154.3.3.1
Comment 11 Carlos López 2024-05-28 11:52:59 UTC
Done, closing.