CVE-2026-52795
mediumpriority · track · 0OT risk · elevatedEPSS 0.003 · 20 %ileDEEUEPSS · scored 2026-10-24
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.ViewerCanRead() (returns 404 when the user CAN read) instead of if !repoCtx.ViewerCanRead() (return 404 when the user CANNOT read). Once watching, the attacker's dashboard activity feed shows commit messages, branch names, issue titles, and PR details from the private repository. If email notifications are enabled, the attacker also receives emails containing issue and comment content.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-2013Gogs: Mehrere SchwachstellenDeutsch2026-06-18csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Gogs ausnutzen, um erweiterte Berechtigungen zu erlangen, beliebigen Code auszuführen – sogar mit erweiterten Berechtigungen, was zur vollständigen Kontrolle über das System führen kann –, Sicherheitsmaßnahmen zu umgehen, Daten zu manipulieren, Cross-Site-Scripting-Angriffe durchzuführen, Benutzer auf bösartige Websites umzuleiten oder einen Denial-of-Service-Zustand zu verursachen.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://github.com/gogs/gogs/commit/d61caa3676fde060d0c03ccf815851dddc7c67e0cnnvd
- https://github.com/gogs/gogs/security/advisories/GHSA-v8w7-f6gc-cqc2cnnvd
- https://github.com/gogs/gogs/commit/d61caa3676fde060d0c03ccf815851dddc7c67e0enisa_euvd
- https://github.com/gogs/gogs/security/advisories/GHSA-v8w7-f6gc-cqc2enisa_euvd
- https://github.com/gogs/gogs/commit/d61caa3676fde060d0c03ccf815851dddc7c67e0nvd
- https://github.com/gogs/gogs/security/advisories/GHSA-v8w7-f6gc-cqc2nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan