From 61cea733b1eee02c8f5414d6201ce1ba5f2a2ebf Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Mon, 14 Mar 2022 18:38:04 +0000 Subject: [PATCH] Add CVE-2022-20001 for GHSA-pj5f-6vxj-f5mq Add CVE-2022-20001 for GHSA-pj5f-6vxj-f5mq --- 2022/20xxx/CVE-2022-20001.json | 87 +++++++++++++++++++++++++++++++--- 1 file changed, 81 insertions(+), 6 deletions(-) diff --git a/2022/20xxx/CVE-2022-20001.json b/2022/20xxx/CVE-2022-20001.json index 18b622a20ac..8964c998b1d 100644 --- a/2022/20xxx/CVE-2022-20001.json +++ b/2022/20xxx/CVE-2022-20001.json @@ -1,18 +1,93 @@ { - "data_type": "CVE", - "data_format": "MITRE", - "data_version": "4.0", "CVE_data_meta": { + "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2022-20001", - "ASSIGNER": "cve@mitre.org", - "STATE": "RESERVED" + "STATE": "PUBLIC", + "TITLE": "Injection in fish" }, + "affects": { + "vendor": { + "vendor_data": [ + { + "product": { + "product_data": [ + { + "product_name": "fish-shell", + "version": { + "version_data": [ + { + "version_value": ">= 3.1.0, < 3.4.0" + } + ] + } + } + ] + }, + "vendor_name": "fish-shell" + } + ] + } + }, + "data_format": "MITRE", + "data_type": "CVE", + "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", - "value": "** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided." + "value": "fish is a command line shell. fish version 3.1.0 through version 3.3.1 is vulnerable to arbitrary code execution. git repositories can contain per-repository configuration that change the behavior of git, including running arbitrary commands. When using the default configuration of fish, changing to a directory automatically runs `git` commands in order to display information about the current repository in the prompt. If an attacker can convince a user to change their current directory into one controlled by the attacker, such as on a shared file system or extracted archive, fish will run arbitrary commands under the attacker's control. This problem has been fixed in fish 3.4.0. Note that running git in these directories, including using the git tab completion, remains a potential trigger for this issue. As a workaround, remove the `fish_git_prompt` function from the prompt." } ] + }, + "impact": { + "cvss": { + "attackComplexity": "LOW", + "attackVector": "LOCAL", + "availabilityImpact": "HIGH", + "baseScore": 7.8, + "baseSeverity": "HIGH", + "confidentialityImpact": "HIGH", + "integrityImpact": "HIGH", + "privilegesRequired": "NONE", + "scope": "UNCHANGED", + "userInteraction": "REQUIRED", + "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", + "version": "3.1" + } + }, + "problemtype": { + "problemtype_data": [ + { + "description": [ + { + "lang": "eng", + "value": "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')" + } + ] + } + ] + }, + "references": { + "reference_data": [ + { + "name": "https://github.com/fish-shell/fish-shell/security/advisories/GHSA-pj5f-6vxj-f5mq", + "refsource": "CONFIRM", + "url": "https://github.com/fish-shell/fish-shell/security/advisories/GHSA-pj5f-6vxj-f5mq" + }, + { + "name": "https://github.com/fish-shell/fish-shell/pull/8589", + "refsource": "MISC", + "url": "https://github.com/fish-shell/fish-shell/pull/8589" + }, + { + "name": "https://github.com/fish-shell/fish-shell/releases/tag/3.4.0", + "refsource": "MISC", + "url": "https://github.com/fish-shell/fish-shell/releases/tag/3.4.0" + } + ] + }, + "source": { + "advisory": "GHSA-pj5f-6vxj-f5mq", + "discovery": "UNKNOWN" } } \ No newline at end of file