VDB
Sign up
MEDIUM6.5

GHSA-j99q-rwp6-498g

Gitea Arbitrary File Delete Vulnerability

Quick fix

GHSA-j99q-rwp6-498g — code.gitea.io/gitea: upgrade to the fixed version with the command below.

go get code.gitea.io/gitea@v1.6.3

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/code.gitea.io/gitea
Introduced in: 0Fixed in: 1.6.3
Fixgo get code.gitea.io/gitea@v1.6.3

References