CVE-2022-42968: Gitea before 1.17.3 does not sanitize and escape refs in the git backend.
CVE-2022-42968 affects 48 listed versions of Gitea in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Gitea
48 of 124 listed versions are affected. Fixed in 1.17.3. The newest release, 28.4.0, is not affected.
1.17.2 1.17.1 1.17.0 1.16.9 1.16.8 1.16.7 1.16.6 1.16.5 1.16.4 1.16.3 1.16.2 1.16.1 1.16.0 1.15.11 1.15.10 1.15.9 1.15.8 1.15.7 1.15.6 1.15.5 1.15.4 1.15.3 1.15.2 1.15.1 1.15.0 1.13.6 1.13.4 1.13.1 1.12.6 1.12.5 1.11.5 1.11.2 1.8.0 1.8.0-rc2 1.8.0-rc1 1.7.6 1.7.3 1.7.2 1.7.1 1.7.0 1.6.2 1.5.4 1.5.2 1.5.1 1.5.0 1.5.0-rc2 1.5.0-rc1 1.4.3
What it is
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by MITRE on 16 October 2022. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2022-42968 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.