Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-42968

Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-42968
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 06:43 UTC · Revision 1

Source evidence

CVE-2022-42968

core-osv · Original source

Published 16 Oct 2022, 00:00 UTC

Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.

osv:CVE-2022-42968
Complete source record
{
  "id": "c9dc03f168eb75c4377699bd3a18c132be08a8a9c6d07a62335eda001ad47fc0",
  "url": "https://osv.dev/vulnerability/CVE-2022-42968",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-42968",
    "summary": "Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.",
    "evidence": "osv:CVE-2022-42968",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-42968",
      "aliases": [
        "BIT-gitea-2022-42968",
        "CVE-2022-42968",
        "GHSA-w8xw-7crf-h23x",
        "GO-2022-1065"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/go-gitea/gitea",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f48fda8eefa4d47e335f01ac92366b9373950e0e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.17.3"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f48fda8eefa4d47e335f01ac92366b9373950e0e"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.17.3"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.17.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.17.2",
            "v1.17.1",
            "v1.17.0",
            "v1.17.0-rc2",
            "v1.17.0-rc1",
            "v1.17.0-dev",
            "v1.16.0-rc1",
            "v1.15.0-rc1",
            "v1.16.0-dev",
            "v1.15.0-dev",
            "v1.14.0-dev",
            "v1.13.0-dev",
            "v1.12.0-dev",
            "v1.10.5",
            "v1.11.0-rc1",
            "v1.10.0-rc1",
            "v1.11.0-dev",
            "v1.9.0-rc1",
            "v1.10.0-dev",
            "v1.9.0-dev",
            "v1.7.0-dev",
            "v1.6.0-rc1",
            "v1.6.0-dev",
            "v1.5.0-rc1",
            "v1.5.0-dev",
            "v1.1.0",
            "v1.0.0",
            "v0.9.99"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-42968.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.896748245Z",
      "provider": "osv",
      "references": [
        "https://github.com/go-gitea/gitea/releases/tag/v1.17.3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42968.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-42968",
        "https://security.gentoo.org/glsa/202210-14",
        "https://github.com/go-gitea/gitea/pull/21463"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42968.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-42968",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518534,
  "published_at": "2022-10-16T00:00:00+00:00"
}