Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-29468

Cygwin Git is a patch set for the git command line tool for the cygwin environment. A specially crafted repository that contains symbolic links as well as files with backslash characters in the file name may cause just-checked out code to be executed while checking out a repository using Git on Cygwin. The problem will be patched in the Cygwin Git v2.31.1-2 release. At time of writing, the vulnerability is present in the upstream Git source code; any Cygwin user who compiles Git for themselves from upstream sources should manually apply a patch to mitigate the vulnerability. As mitigation users should not clone or pull from repositories from untrusted sources. CVE-2019-1354 was an equivalent vulnerability in Git for Visual Studio.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-29468
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:19 UTC · Revision 1

Source evidence

CVE-2021-29468

core-osv · Original source

Published 29 Apr 2021, 21:15 UTC

Cygwin Git is a patch set for the git command line tool for the cygwin environment. A specially crafted repository that contains symbolic links as well as files with backslash characters in the file name may cause just-checked out code to be executed while checking out a repository using Git on Cygwin. The problem will be patched in the Cygwin Git v2.31.1-2 release. At time of writing, the vulnerability is present in the upstream Git source code; any Cygwin user who compiles Git for themselves from upstream sources should manually apply a patch to mitigate the vulnerability. As mitigation users should not clone or pull from repositories from untrusted sources. CVE-2019-1354 was an equivalent vulnerability in Git for Visual Studio.

osv:CVE-2021-29468
Complete source record
{
  "id": "37ef0b8df93c03f0c108aa7f4975f2d5c835830665ff6075e3e27ab69afcab2c",
  "url": "https://osv.dev/vulnerability/CVE-2021-29468",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-29468",
    "summary": "Cygwin Git is a patch set for the git command line tool for the cygwin environment. A specially crafted repository that contains symbolic links as well as files with backslash characters in the file name may cause just-checked out code to be executed while checking out a repository using Git on Cygwin. The problem will be patched in the Cygwin Git v2.31.1-2 release. At time of writing, the vulnerability is present in the upstream Git source code; any Cygwin user who compiles Git for themselves from upstream sources should manually apply a patch to mitigate the vulnerability. As mitigation users should not clone or pull from repositories from untrusted sources. CVE-2019-1354 was an equivalent vulnerability in Git for Visual Studio.",
    "evidence": "osv:CVE-2021-29468",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-29468",
      "aliases": [
        "CVE-2021-29468",
        "GHSA-rmp3-wq55-f557"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cygporter/git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "25b33aab23dffcbf51f04c1f0788d81b73ca901f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cygwin:git:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.31.1-1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.31.1-1",
            "v2.31.0-1",
            "v2.30.2-1",
            "v2.30.1-1",
            "v2.30.0-1",
            "v2.29.2-1",
            "v2.29.0-1",
            "v2.28.0-1",
            "v2.27.0-1",
            "v2.26.2-1",
            "v2.17.0-1",
            "v2.16.2-1",
            "v2.16.1-1",
            "v2.15.1-1",
            "v2.15.0-1",
            "v2.14.3-1",
            "v2.14.2-3",
            "v2.14.2-2",
            "v2.14.2-1",
            "v2.14.1-1",
            "v2.14.0-1",
            "v2.12.3-2",
            "v2.12.3-1",
            "v2.12.2-1-1",
            "v2.12.2-1",
            "v2.8.3-1",
            "v2.8.0-1",
            "v2.7.4-1",
            "v2.7.3-2",
            "v2.7.3-1",
            "v2.7.0-1",
            "v2.6.2-1",
            "v2.5.3-1",
            "v2.5.1-1",
            "v2.4.5-3",
            "v2.4.5-2",
            "v2.4.5-1",
            "v2.4.4-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29468.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:08.660496822Z",
      "provider": "osv",
      "references": [
        "https://lore.kernel.org/git/CA+kUOa=juEdBMVr_gyTKjz7PkPt2DZHkXQyzcQmAWCsEHC_ssw%40mail.gmail.com/T/#u",
        "https://cygwin.com/pipermail/cygwin-announce/2021-April/010018.html",
        "https://github.com/me-and/Cygwin-Git/blob/main/check-backslash-safety.patch",
        "https://github.com/me-and/Cygwin-Git/security/advisories/GHSA-rmp3-wq55-f557"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-29468",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 381342,
  "published_at": "2021-04-29T21:15:08.55+00:00"
}