Auth bypass in Gogs

CVE-2026-52795

Gogs is an open source self-hosted Git service. In 0.14.3 and earlier, any authenticated user can watch a private repository they have no access to, because the access check in the Watch API handler is inverted. The code checks if repoCtx…

Vulnerability class: Broken Access Control

CVSS v3 metric

CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.

Affected products

  • Gogs — versions <= 0.14.3

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-52795?
CVE-2026-52795 is a medium-severity vulnerability in Gogs, classified under Incorrect Authorization. CVSS score: 4.3/10. Published 2026-06-24.
How severe is CVE-2026-52795?
Medium severity. CVSS v3 base score is 4.3 out of 10.