Improper access control in gogs - CVE-2026-52810

 

Improper access control in gogs - CVE-2026-52810

Published: June 19, 2026


Vulnerability identifier: #VU134898
CSH Severity: Low
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-52810
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

gogs

How to mitigate CVE-2026-52810

Install security update from vendor's website.

gogs - update to 0.14.3

External References

Related Security Bulletins