{
    "data_type": "CVE",
    "data_format": "MITRE",
    "data_version": "4.0",
    "CVE_data_meta": {
        "ASSIGNER": "report@snyk.io",
        "DATE_PUBLIC": "2022-03-11T16:12:03.865726Z",
        "ID": "CVE-2022-24433",
        "STATE": "PUBLIC",
        "TITLE": "Command Injection"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "simple-git",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_value": "3.3.0"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "n/a"
                }
            ]
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Command Injection"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199",
                "name": "https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199"
            },
            {
                "refsource": "MISC",
                "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245",
                "name": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/steveukx/git-js/pull/767",
                "name": "https://github.com/steveukx/git-js/pull/767"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/steveukx/git-js/releases/tag/simple-git%403.3.0",
                "name": "https://github.com/steveukx/git-js/releases/tag/simple-git%403.3.0"
            }
        ]
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "The package simple-git before 3.3.0 are vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options it was possible to get arbitrary command execution."
            }
        ]
    },
    "impact": {
        "cvss": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "attackVector": "NETWORK",
            "attackComplexity": "HIGH",
            "privilegesRequired": "NONE",
            "userInteraction": "NONE",
            "scope": "UNCHANGED",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "availabilityImpact": "HIGH"
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "Alessio Della Libera of Snyk Research Team"
        }
    ]
}