Improper access control in gogs - CVE-2026-52810
Published: June 19, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote user to gain write access to a repository.
The vulnerability exists due to improper access control in the Git smart HTTP repository RPC handler when handling a POST request to the git-receive-pack endpoint with a forged service=git-upload-pack query parameter. A remote user can send a specially crafted request to gain write access to a repository.
Exploitation is possible for read-only collaborators on repositories that are not anonymously readable, and on instances with REQUIRE_SIGNIN_VIEW enabled any signed-in user can target public repositories.