{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2022-21191",
        "assignerOrgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
        "state": "PUBLISHED",
        "assignerShortName": "snyk",
        "dateReserved": "2022-02-24T11:58:23.980Z",
        "datePublished": "2023-01-13T05:00:01.119Z",
        "dateUpdated": "2024-08-03T02:31:58.937Z"
    },
    "containers": {
        "cna": {
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "attackVector": "LOCAL",
                        "attackComplexity": "HIGH",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "HIGH",
                        "baseScore": 7.4,
                        "baseSeverity": "HIGH",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"
                    }
                }
            ],
            "credits": [
                {
                    "value": "Johns Hopkins",
                    "lang": "en"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-78",
                            "description": "Command Injection",
                            "lang": "en"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
                "shortName": "snyk",
                "dateUpdated": "2023-01-13T05:00:01.119Z"
            },
            "descriptions": [
                {
                    "value": "Versions of the package global-modules-path before 3.0.0 are vulnerable to Command Injection due to missing input sanitization or other checks and sandboxes being employed to the getPath  function.\r\r",
                    "lang": "en"
                }
            ],
            "references": [
                {
                    "url": "https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973"
                },
                {
                    "url": "https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186"
                },
                {
                    "url": "https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0"
                },
                {
                    "url": "https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180"
                }
            ],
            "affected": [
                {
                    "product": "global-modules-path",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "3.0.0",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "vendor": "n/a"
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T02:31:58.937Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}