CVE
CVE-2022-42968
published critical CVSS 3.1 · 9.8gitea: Sanitize and Escape refs in git backend
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | gitea | Fixed | 1.17.3-r0 | Package fix record |
| Alpine Linux | v3.17 | gitea | Fixed | 1.17.3-r0 | Package fix record |
| Alpine Linux | v3.18 | gitea | Fixed | 1.17.3-r0 | Package fix record |
| Alpine Linux | v3.19 | gitea | Fixed | 1.17.3-r0 | Package fix record |
| Alpine Linux | v3.20 | gitea | Fixed | 1.17.3-r0 | Package fix record |
| Alpine Linux | v3.21 | gitea | Fixed | 1.17.3-r0 | Package fix record |
| Alpine Linux | v3.22 | gitea | Fixed | 1.17.3-r0 | Package fix record |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.23 | gitea | Fixed | 1.17.3-r0 | Package fix record |
| Alpine Linux | v3.24 | gitea | Fixed | 1.17.3-r0 | Package fix record |
Description
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-88 CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
3- https://github.com/go-gitea/gitea/pull/21463
- https://github.com/go-gitea/gitea/releases/tag/v1.17.3
- GLSA-202210-14 https://security.gentoo.org/glsa/202210-14
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- df6ca951fe83363a15d7d387be9e7778246614fd5bf068edbba07fd1c5642334
- Ingested
- 23 Sep 2026, 08:02:53 UTC
- Source record
- Official CVE record