Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    BREW-GIT-CVE-2024-32004 (CVE-2024-32004)

    Vulnerability from osv_homebrew – Published: 2026-10-15 03:31 – Updated: 2026-11-13 08:44 – Source website
    VLAI
    Summary
    Git vulnerable to Remote Code Execution while cloning special-crafted local repositories
    Details

    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, an attacker can prepare a local repository in such a way that, when cloned, will execute arbitrary code during the operation. 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 cloning repositories from untrusted sources.

    Impacted products
    Ecosystem Package Version
    Homebrew git
    pkg:brew/git
    Affected: ≥ 2.17.0, < 2.45.1 (ecosystem)

    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "upstream_fixed_in": "2.45.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "git",
            "purl": "pkg:brew/git"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "2.17.0"
                },
                {
                  "fixed": "2.45.1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "low",
        "source": "matched",
        "strategy": "distro",
        "upstream_evidence": [
          {
            "ecosystem": "Debian",
            "key": "Debian/git",
            "name": "git",
            "strategy": "distro"
          },
          {
            "ecosystem": "GIT",
            "key": "upstream:https://github.com/git/git",
            "name": "https://github.com/git/git",
            "strategy": "distro",
            "subject_version": "2.56.1"
          },
          {
            "ecosystem": "Ubuntu",
            "key": "Ubuntu/git",
            "name": "git",
            "strategy": "distro"
          }
        ]
      },
      "details": "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, an attacker can prepare a local repository in such a way that, when cloned, will execute arbitrary code during the operation. 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 cloning repositories from untrusted sources.",
      "id": "BREW-git-CVE-2024-32004",
      "modified": "2026-11-13T08:44:03Z",
      "published": "2026-10-15T03:31:21Z",
      "references": [
        {
          "type": "WEB",
          "url": "http://www.openwall.com/lists/oss-security/2024/05/14/2"
        },
        {
          "type": "WEB",
          "url": "https://git-scm.com/docs/git-clone"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/"
        },
        {
          "type": "ADVISORY",
          "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32004.json"
        },
        {
          "type": "ADVISORY",
          "url": "https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-32004"
        },
        {
          "type": "FIX",
          "url": "https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H",
          "type": "CVSS_V3"
        }
      ],
      "summary": "Git vulnerable to Remote Code Execution while cloning special-crafted local repositories",
      "upstream": [
        "CVE-2024-32004",
        "BIT-git-2024-32004",
        "GHSA-xfc6-vwr8-r389"
      ]
    }

    CVE-2024-32004 (GCVE-0-2024-32004)

    Vulnerability from cvelistv5 – Published: 2024-05-14 18:46 – Updated: 2025-11-04 16:12
    VLAI
    Title
    Git vulnerable to Remote Code Execution while cloning special-crafted local repositories
    Summary
    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, an attacker can prepare a local repository in such a way that, when cloned, will execute arbitrary code during the operation. 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 cloning repositories from untrusted sources.
    SSVC
    Exploitation: none Automatable: no Technical Impact: total
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2024-05-15 17:59 UTC
    CWE
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7856 records in the last 180 days details
    Impacted products
    Vendor Product Version
    git git Affected: = 2.45.0
    Affected: = 2.44.0
    Affected: >= 2.43.0, < 2.43.4
    Affected: >= 2.42.0, < 2.42.2
    Affected: = 2.41.0
    Affected: >= 2.40.0, < 2.40.2
    Affected: < 2.39.4
    Create a notification for this product.
    git git Affected: 2.45.0
        cpe:2.3:a:git:git:2.45.0:*:*:*:*:*:*:*
    Create a notification for this product.
    git git Affected: 2.44.0
        cpe:2.3:a:git:git:2.44.0:*:*:*:*:*:*:*
    Create a notification for this product.
    git git Affected: 2.43.0 , < 2.43.4 (custom)
        cpe:2.3:a:git:git:2.43.0:*:*:*:*:*:*:*
    Create a notification for this product.
    git git Affected: 2.42.0 , < 2.42.2 (custom)
        cpe:2.3:a:git:git:2.42.0:*:*:*:*:*:*:*
    Create a notification for this product.
    git git Affected: 2.41.0
        cpe:2.3:a:git:git:2.41.0:*:*:*:*:*:*:*
    Create a notification for this product.
    git git Affected: 2.40.0 , < 2.40.2 (custom)
        cpe:2.3:a:git:git:2.40.0:*:*:*:*:*:*:*
    Create a notification for this product.
    git git Affected: 0 , < 2.39.4 (custom)
        cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2025-11-04T16:12:10.670Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "name": "https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389",
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389"
              },
              {
                "name": "https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8",
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8"
              },
              {
                "name": "https://git-scm.com/docs/git-clone",
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://git-scm.com/docs/git-clone"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "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"
                ],
                "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html"
              },
              {
                "url": "https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "affected": [
              {
                "cpes": [
                  "cpe:2.3:a:git:git:2.45.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "git",
                "vendor": "git",
                "versions": [
                  {
                    "status": "affected",
                    "version": "2.45.0"
                  }
                ]
              },
              {
                "cpes": [
                  "cpe:2.3:a:git:git:2.44.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "git",
                "vendor": "git",
                "versions": [
                  {
                    "status": "affected",
                    "version": "2.44.0"
                  }
                ]
              },
              {
                "cpes": [
                  "cpe:2.3:a:git:git:2.43.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "git",
                "vendor": "git",
                "versions": [
                  {
                    "lessThan": "2.43.4",
                    "status": "affected",
                    "version": "2.43.0",
                    "versionType": "custom"
                  }
                ]
              },
              {
                "cpes": [
                  "cpe:2.3:a:git:git:2.42.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "git",
                "vendor": "git",
                "versions": [
                  {
                    "lessThan": "2.42.2",
                    "status": "affected",
                    "version": "2.42.0",
                    "versionType": "custom"
                  }
                ]
              },
              {
                "cpes": [
                  "cpe:2.3:a:git:git:2.41.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "git",
                "vendor": "git",
                "versions": [
                  {
                    "status": "affected",
                    "version": "2.41.0"
                  }
                ]
              },
              {
                "cpes": [
                  "cpe:2.3:a:git:git:2.40.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "git",
                "vendor": "git",
                "versions": [
                  {
                    "lessThan": "2.40.2",
                    "status": "affected",
                    "version": "2.40.0",
                    "versionType": "custom"
                  }
                ]
              },
              {
                "cpes": [
                  "cpe:2.3:a:git:git:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "git",
                "vendor": "git",
                "versions": [
                  {
                    "lessThan": "2.39.4",
                    "status": "affected",
                    "version": "0",
                    "versionType": "custom"
                  }
                ]
              }
            ],
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-32004",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-05-15T17:59:29.364044Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-08-09T18:41:23.817Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "git",
              "vendor": "git",
              "versions": [
                {
                  "status": "affected",
                  "version": "= 2.45.0"
                },
                {
                  "status": "affected",
                  "version": "= 2.44.0"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.43.0, \u003c 2.43.4"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.42.0, \u003c 2.42.2"
                },
                {
                  "status": "affected",
                  "version": "= 2.41.0"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.40.0, \u003c 2.40.2"
                },
                {
                  "status": "affected",
                  "version": "\u003c 2.39.4"
                }
              ]
            }
          ],
          "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, an attacker can prepare a local repository in such a way that, when cloned, will execute arbitrary code during the operation. 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 cloning repositories from untrusted sources."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 8.2,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-114",
                  "description": "CWE-114: Process Control",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-06-26T10:06:05.293Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389"
            },
            {
              "name": "https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8"
            },
            {
              "name": "https://git-scm.com/docs/git-clone",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://git-scm.com/docs/git-clone"
            },
            {
              "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"
            },
            {
              "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html"
            }
          ],
          "source": {
            "advisory": "GHSA-xfc6-vwr8-r389",
            "discovery": "UNKNOWN"
          },
          "title": "Git vulnerable to Remote Code Execution while cloning special-crafted local repositories"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2024-32004",
        "datePublished": "2024-05-14T18:46:32.192Z",
        "dateReserved": "2024-04-08T13:48:37.493Z",
        "dateUpdated": "2025-11-04T16:12:10.670Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }