Live threats

All CVEs / Gitea

CVE-2022-42968Gitea

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.6%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
Oct 16, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-88
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Gitea.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go code.gitea.io/gitea < 1.17.3 1.17.3 go get code.gitea.io/gitea@v1.17.3
Go github.com/go-gitea/gitea < 1.17.3 1.17.3 go get github.com/go-gitea/gitea@v1.17.3

Per OSV / GitHub Advisories (GO-2022-1065, GHSA-w8xw-7crf-h23x). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
giteagitea< 1.17.3

Official sources

References

Links published by the sources. Open them with care.