{
    "dataType": "CVE_RECORD",
    "cveMetadata": {
        "cveId": "CVE-2024-32020",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-04-09T15:29:35.937Z",
        "datePublished": "2024-05-14T18:54:08.184Z",
        "dateUpdated": "2024-08-02T01:59:50.905Z"
    },
    "containers": {
        "cna": {
            "title": "Cloning local Git repository by untrusted user allows the untrusted user to modify objects in the cloned repository at will",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-281",
                            "lang": "en",
                            "description": "CWE-281: Improper Preservation of Permissions",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "LOW",
                        "baseScore": 3.9,
                        "baseSeverity": "LOW",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/git/git/security/advisories/GHSA-5rfh-556j-fhgj",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/git/git/security/advisories/GHSA-5rfh-556j-fhgj"
                },
                {
                    "name": "https://github.com/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d"
                },
                {
                    "name": "https://github.com/git/git/commit/9e65df5eab274bf74c7b570107aacd1303a1e703",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/git/git/commit/9e65df5eab274bf74c7b570107aacd1303a1e703"
                },
                {
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/"
                },
                {
                    "url": "http://www.openwall.com/lists/oss-security/2024/05/14/2"
                }
            ],
            "affected": [
                {
                    "vendor": "git",
                    "product": "git",
                    "versions": [
                        {
                            "version": "= 2.45.0",
                            "status": "affected"
                        },
                        {
                            "version": "= 2.44.0",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.43.0, < 2.43.4",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.42.0, < 2.42.2",
                            "status": "affected"
                        },
                        {
                            "version": "= 2.41.0",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.40.0, < 2.40.2",
                            "status": "affected"
                        },
                        {
                            "version": "< 2.39.4",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-05-14T18:54:08.184Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, local clones may end up hardlinking files into the target repository's object database when source and target repository reside on the same disk. If the source repository is owned by a different user, then those hardlinked files may be rewritten at any point in time by the untrusted user. Cloning local repositories will cause Git to either copy or hardlink files of the source repository into the target repository. This significantly speeds up such local clones compared to doing a \"proper\" clone and saves both disk space and compute time. When cloning a repository located on the same disk that is owned by a different user than the current user we also end up creating such hardlinks. These files will continue to be owned and controlled by the potentially-untrusted user and can be rewritten by them at will in the future. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4."
                }
            ],
            "source": {
                "advisory": "GHSA-5rfh-556j-fhgj",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "git",
                        "product": "git",
                        "cpes": [
                            "cpe:2.3:a:git:git:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "2.39.4",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "git",
                        "product": "git",
                        "cpes": [
                            "cpe:2.3:a:git:git:2.45.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.45.0",
                                "status": "affected"
                            }
                        ]
                    },
                    {
                        "vendor": "git",
                        "product": "git",
                        "cpes": [
                            "cpe:2.3:a:git:git:2.44.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.44.0",
                                "status": "affected"
                            }
                        ]
                    },
                    {
                        "vendor": "git",
                        "product": "git",
                        "cpes": [
                            "cpe:2.3:a:git:git:2.43:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.43",
                                "status": "affected",
                                "lessThan": "2.43.4",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "git",
                        "product": "git",
                        "cpes": [
                            "cpe:2.3:a:git:git:2.42.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.42.0",
                                "status": "affected",
                                "lessThan": "2.42.2",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "git",
                        "product": "git",
                        "cpes": [
                            "cpe:2.3:a:git:git:2.41.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.41.0",
                                "status": "affected"
                            }
                        ]
                    },
                    {
                        "vendor": "git",
                        "product": "git",
                        "cpes": [
                            "cpe:2.3:a:git:git:2.40.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.40.0",
                                "status": "affected",
                                "lessThan": "2.40.2",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-05-15T14:32:40.280977Z",
                                "id": "CVE-2024-32020",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-06T17:15:59.133Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T01:59:50.905Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/git/git/security/advisories/GHSA-5rfh-556j-fhgj",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/git/git/security/advisories/GHSA-5rfh-556j-fhgj"
                    },
                    {
                        "name": "https://github.com/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d"
                    },
                    {
                        "name": "https://github.com/git/git/commit/9e65df5eab274bf74c7b570107aacd1303a1e703",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/git/git/commit/9e65df5eab274bf74c7b570107aacd1303a1e703"
                    },
                    {
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "http://www.openwall.com/lists/oss-security/2024/05/14/2",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    },
    "dataVersion": "5.1"
}