CVE-2024-32465

Source
https://cve.org/CVERecord?id=CVE-2024-32465
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32465.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-32465
Aliases
Downstream
Related
Published
2024-05-14T19:18:33.914Z
Modified
2026-02-11T01:59:17.704284Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Git's protections for cloning untrusted repositories can be bypassed
Details

Git is a revision control system. The Git project recommends to avoid working in untrusted repositories, and instead to clone it first with git clone --no-local to obtain a clean copy. Git has specific protections to make that a safe operation even with an untrusted source repository, but vulnerabilities allow those protections to be bypassed. In the context of cloning local repositories owned by other users, this vulnerability has been covered in CVE-2024-32004. But there are circumstances where the fixes for CVE-2024-32004 are not enough: For example, when obtaining a .zip file containing a full copy of a Git repository, it should not be trusted by default to be safe, as e.g. hooks could be configured to run within the context of that repository. 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. As a workaround, avoid using Git in repositories that have been obtained via archives from untrusted sources.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32465.json"
}
References

Affected packages

Git / github.com/git-for-windows/git

Affected ranges

Type
GIT
Repo
https://github.com/git-for-windows/git
Events

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32465.json"

Git / github.com/git/git

Affected versions

v2.*
v2.39.4
v2.40.2
v2.41.1
v2.42.2
v2.43.0
v2.43.1
v2.43.2
v2.43.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32465.json"
vanir_signatures
[
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/git/git/commit/7b70e9efb18c2cc3f219af399bd384c5801ba1d7",
        "digest": {
            "line_hashes": [
                "24895935137609152026691401767323182768",
                "213705167430808558393702215500403454518",
                "246074616750092741247299495563946189079",
                "142284556392129674621285378607207771749"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2024-32465-1f9d9764",
        "deprecated": false,
        "target": {
            "file": "builtin/upload-pack.c"
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/git/git/commit/7b70e9efb18c2cc3f219af399bd384c5801ba1d7",
        "digest": {
            "line_hashes": [
                "20137929257677507433737657050881151365",
                "34757250967373426474970794593731624982",
                "119798621434729037102225573451019537530"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2024-32465-3d062b33",
        "deprecated": false,
        "target": {
            "file": "promisor-remote.c"
        }
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/git/git/commit/7b70e9efb18c2cc3f219af399bd384c5801ba1d7",
        "digest": {
            "function_hash": "338693055186718475485492629440546523803",
            "length": 1133.0
        },
        "id": "CVE-2024-32465-93435a6c",
        "deprecated": false,
        "target": {
            "file": "promisor-remote.c",
            "function": "fetch_objects"
        }
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/git/git/commit/7b70e9efb18c2cc3f219af399bd384c5801ba1d7",
        "digest": {
            "function_hash": "197075911813756590670167138436387342893",
            "length": 1342.0
        },
        "id": "CVE-2024-32465-b70d6cb7",
        "deprecated": false,
        "target": {
            "file": "builtin/upload-pack.c",
            "function": "cmd_upload_pack"
        }
    }
]