# CVE-2022-42968: Gitea vulnerable to Argument Injection

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.43%, higher than 73% of CVEs (2026-12-01)
- Published: 2022-10-16T00:00:00.000Z
- Modified: 2026-09-08T08:47:33.623Z
- Also known as: GHSA-w8xw-7crf-h23x, BIT-GITEA-2022-42968, GO-2022-1065
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/go-gitea/gitea (Go): before 1.17.3
- code.gitea.io/gitea (Go): before 1.17.3
- gitea gitea: before 1.17.3
- gitea (Bitnami): before 1.17.3

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- NVD: 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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/go-gitea/gitea/pull/21463> (advisory, patch, third-party-advisory, web)
- <https://github.com/go-gitea/gitea/releases/tag/v1.17.3> (advisory, release-notes, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202210-14> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-42968> (advisory, web)
- <https://github.com/go-gitea/gitea> (package)
- <https://github.com/advisories/GHSA-w8xw-7crf-h23x> (advisory)

## Sources

- CVE List: [CVE-2022-42968](https://www.cve.org/CVERecord?id=CVE-2022-42968), CVE Terms of Use, modified 2025-05-14
- GitHub Advisory Database: [GHSA-w8xw-7crf-h23x](https://github.com/advisories/GHSA-w8xw-7crf-h23x), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-1065](https://pkg.go.dev/vuln/GO-2022-1065), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-42968](https://nvd.nist.gov/vuln/detail/CVE-2022-42968), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITEA-2022-42968](https://osv.dev/vulnerability/BIT-GITEA-2022-42968), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-42968 · Whole record: https://cve.day/CVE-2022-42968.json · Rebuilt by cve.day 2026-11-25T22:58:15.741Z
