CVE-2019-1000002 Gitea Arbitrary File Delete Vulnerability
An attacker with write access to any repository can delete files outside their authorized scope due to incorrect access control checks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-1000002?
CVE-2019-1000002 is a medium-severity missing authorization vulnerability in Gitea Gitea, published on 4 Feb 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Gitea version 1.6.2 and earlier contains a Incorrect Access Control vulnerability in Delete/Edit file functionallity that can result in the attacker deleting files outside the repository he/she has access to. This attack appears to be exploitable via the attacker must get write access to "any" repository including self-created ones.. This vulnerability appears to have been fixed in 1.6.3, 1.7.0-rc2.
Which versions are affected by CVE-2019-1000002?
2 open source packages ship an affected version, including code.gitea.io/gitea. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.6.3 |
code.gitea.io/gitea Go | All versions | 1.6.3 |
Products include Gitea Gitea.
How do I fix CVE-2019-1000002?
Upgrade code.gitea.io/gitea to 1.6.3 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2019-1000002 being exploited?
There is no known exploitation of CVE-2019-1000002 in the wild and no public exploit code.
Other vulnerabilities in Gitea Gitea
Sources
Also known as GHSA-j99q-rwp6-498g.