{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.5.20"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9ced7530814aac488dc659bfe7be171b9d422028"
            }
          ],
          "repo": "https://github.com/fredriknoren/ungit",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "The package ungit before 1.5.20 are vulnerable to Remote Code Execution (RCE) via argument injection. The issue occurs when calling the /api/fetch endpoint. User controlled values (remote and ref) are passed to the git fetch command. By injecting some git options it was possible to get arbitrary command execution.",
  "id": "CVE-2022-25766",
  "modified": "2026-03-15T21:50:35.671407515Z",
  "published": "2022-03-21T18:15:07.990Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://snyk.io/vuln/SNYK-JS-UNGIT-2414099"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520"
    },
    {
      "type": "FIX",
      "url": "https://github.com/FredrikNoren/ungit/pull/1510"
    }
  ],
  "related": [
    "SNYK-JS-UNGIT-2414099"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}