{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-29012",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-03-29T17:39:16.143Z",
        "datePublished": "2023-04-25T20:44:05.329Z",
        "dateUpdated": "2024-08-02T14:00:14.358Z"
    },
    "containers": {
        "cna": {
            "title": "Git CMD erroneously executes `doskey.exe` in the current directory, if it exists",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-427",
                            "lang": "en",
                            "description": "CWE-427: Uncontrolled Search Path Element",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "HIGH",
                        "baseScore": 7.3,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "HIGH",
                        "scope": "CHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g"
                },
                {
                    "name": "https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1"
                }
            ],
            "affected": [
                {
                    "vendor": "git-for-windows",
                    "product": "git",
                    "versions": [
                        {
                            "version": "< 2.40.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-04-25T20:44:05.329Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Git for Windows is the Windows port of Git. Prior to version 2.40.1, any user of Git CMD who starts the command in an untrusted directory is impacted by an Uncontrolles Search Path Element vulnerability. Maliciously-placed `doskey.exe` would be executed silently upon running Git CMD. The problem has been patched in Git for Windows v2.40.1. As a workaround, avoid using Git CMD or, if using Git CMD, avoid starting it in an untrusted directory."
                }
            ],
            "source": {
                "advisory": "GHSA-gq5x-v87v-8f7g",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T14:00:14.358Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g"
                    },
                    {
                        "name": "https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1"
                    }
                ]
            }
        ]
    }
}