# CVE-2022-27313: Arbitrary file deletion in gitea

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.04%, higher than 64% of CVEs (2026-12-01)
- Published: 2022-05-03T19:57:11.000Z
- Modified: 2026-09-08T08:47:34.569Z
- Also known as: GHSA-g7p7-x6w7-w6qg, BIT-GITEA-2022-27313, GO-2022-0442
- Assigned by: mitre

## Description

An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- code.gitea.io/gitea (Go): before 1.16.4
- gitea gitea: 1.16.3
- gitea (Bitnami): from 1.16.3 before 1.16.4

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/go-gitea/gitea/pull/19072> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-27313> (advisory, web)
- <https://github.com/go-gitea/gitea> (package)
- <https://github.com/go-gitea/gitea/releases/tag/v1.16.4> (web)
- <https://github.com/advisories/GHSA-g7p7-x6w7-w6qg> (advisory)

## Sources

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

---

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