CVE-2022-42968
Gitea vulnerable to Argument Injection
CVE-2022-42968 is a critical vulnerability (CVSS 9.8) in Gitea, published October 16, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.43%, the 73rd percentile. Fixed in github.com/go-gitea/gitea 1.17.3.
- Severity
- 9.8 CriticalCVSS 3.1, NVD
- Exploit chance
- 1.43%EPSS, 73rd percentile
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
1.17.3github.com/go-gitea/gitea +10 more
Description
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/go-gitea/giteaGo | before 1.17.3 | 1.17.3 |
giteaAlpine:v3.17 | before 1.17.3-r0 | 1.17.3-r0 |
giteaAlpine:v3.18 | before 1.17.3-r0 | 1.17.3-r0 |
giteaAlpine:v3.19 | before 1.17.3-r0 | 1.17.3-r0 |
giteaAlpine:v3.20 | before 1.17.3-r0 | 1.17.3-r0 |
giteaAlpine:v3.21 | before 1.17.3-r0 | 1.17.3-r0 |
giteaAlpine:v3.22 | before 1.17.3-r0 | 1.17.3-r0 |
giteaAlpine:v3.23 | before 1.17.3-r0 | 1.17.3-r0 |
giteaAlpine:v3.24 | before 1.17.3-r0 | 1.17.3-r0 |
giteaBitnami | before 1.17.3 | 1.17.3 |
code.gitea.io/giteaGo | before 1.17.3 | 1.17.3 |
What each source reports
NVD Score used 9.8
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- Record
CVE-2022-42968- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-88
- Updated
- 2026-11-02
CVE List 9.8
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- Record
CVE-2022-42968- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-88
- Updated
- 2026-11-02
EUVDEUVD-2022-7173 9.8
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- Record
EUVD-2022-7173- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-w8xw-7crf-h23x 9.8
Gitea vulnerable to Argument Injection
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- Record
GHSA-w8xw-7crf-h23x- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-88
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-42968 9.8
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- Record
ALPINE-CVE-2022-42968- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSV 9.8
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- Record
CVE-2022-42968- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-w8xw-7crf-h23x 9.8
Gitea vulnerable to Argument Injection
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- Record
GHSA-w8xw-7crf-h23x- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-88
- Updated
- 2026-11-02
OSVBIT-gitea-2022-42968No score
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- Record
BIT-gitea-2022-42968- Updated
- 2026-11-02
OSVGO-2022-1065No score
Gitea vulnerable to Argument Injection in code.gitea.io/gitea
Gitea vulnerable to Argument Injection in code.gitea.io/gitea
- Record
GO-2022-1065- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
github.com/go-gitea/gitea/pull/21463
github.com/go-gitea/gitea/releases/tag/v1.17.3
security.gentoo.org/glsa/202210-14
nvd.nist.gov/vuln/detail/CVE-2022-42968
github.com/advisories/GHSA-w8xw-7crf-h23x
security.alpinelinux.org/vuln/CVE-2022-42968
github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42968.json
github.com/go-gitea/gitea