CVE-2022-42968
CRITICAL 9.8CVSS 3.1Gitea 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.
- Published
- 16 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-88
- Also known as
- BIT-gitea-2022-42968GHSA-w8xw-7crf-h23xGO-2022-1065
- Sources
- NVDJSONOSV GHSA-w8xw-7crf-h23xJSONOSV GO-2022-1065JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitea | giteacpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:* |
< 1.17.3 | 1.17.3 |
| OSV | Go | github.com/go-gitea/gitea | < 1.17.3 | 1.17.3 |
| OSV | Go | code.gitea.io/gitea | < 1.17.3 | 1.17.3 |
References
- https://github.com/go-gitea/gitea/pull/21463 · Patch, Third Party Advisory, WEB
- https://github.com/go-gitea/gitea/releases/tag/v1.17.3 · Release Notes, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202210-14 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-42968 · ADVISORY
- https://github.com/go-gitea/gitea · PACKAGE
- https://github.com/advisories/GHSA-w8xw-7crf-h23x · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 16 Oct 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Oct 2022)