CVE-2022-27313
Arbitrary file deletion in gitea
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
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
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- Record
CVE-2022-27313- 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 - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
CVE List No score
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- Record
CVE-2022-27313- Updated
- 2026-11-02
EUVDEUVD-2022-3917 No score
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- Record
EUVD-2022-3917- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-g7p7-x6w7-w6qg
7.5
Arbitrary file deletion in gitea
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- Record
GHSA-g7p7-x6w7-w6qg- 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 - Updated
- 2026-11-02
OSVALPINE-CVE-2022-27313
7.5
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- Record
ALPINE-CVE-2022-27313- 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 - Updated
- 2026-11-03
OSVGHSA-g7p7-x6w7-w6qg
7.5
Arbitrary file deletion in gitea
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- Record
GHSA-g7p7-x6w7-w6qg- 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 - Updated
- 2026-11-02
OSVBIT-gitea-2022-27313 No score
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- Record
BIT-gitea-2022-27313- Updated
- 2026-11-02
OSV No score
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- Record
CVE-2022-27313- Updated
- 2026-11-02
OSVGO-2022-0442 No score
Arbitrary file deletion in gitea in code.gitea.io/gitea
Arbitrary file deletion in gitea in code.gitea.io/gitea
- Record
GO-2022-0442- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
code.gitea.io/giteaGo |
before 1.16.4 | 1.16.4 |
giteaAlpine:v3.16 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaAlpine:v3.17 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaAlpine:v3.18 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaAlpine:v3.19 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaAlpine:v3.20 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaAlpine:v3.21 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaAlpine:v3.22 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaAlpine:v3.23 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaAlpine:v3.24 |
before 1.16.3-r0 | 1.16.3-r0 |
giteaBitnami |
1.16.3 up to 1.16.4 | 1.16.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-27313 is a high vulnerability (CVSS 7.5) in Gitea, published May 3, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.04%, the 64th percentile. Fixed in code.gitea.io/gitea 1.16.4.
References
github.com/go-gitea/gitea/pull/19072
nvd.nist.gov/vuln/detail/CVE-2022-27313
github.com/go-gitea/gitea/releases/tag/v1.16.4
github.com/advisories/GHSA-g7p7-x6w7-w6qg
security.alpinelinux.org/vuln/CVE-2022-27313
github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27313.json
github.com/go-gitea/gitea