Description
Gogs through 0.14.4 contains an information disclosure vulnerability that allows authenticated users to view private forks by querying fork listings without per-fork read checks. Attackers with read access to a private base repository can call GET /api/v1/repos/{owner}/{repo}/forks or the Forks web handler to obtain other users' private fork owners, names, descriptions and clone URLs.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gogs | gogs | ≤ 0.14.4 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
z3r0s6/gogs-private-fork-disclosure-CVE-2026-77918 ★ 0 · Nov 24, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- WID-SEC-2026-4768 Gogs: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Nov 23, 2026
References
- Pull Request #8626 issue-tracking patch
- Patch Commit patch
- https://github.com/gogs/gogs product
- https://github.com/gogs/gogs/blob/v0.14.4/internal/route/api/v1/repo/repo.go#L352 technical-description
- https://github.com/gogs/gogs/blob/v0.14.4/internal/route/repo/view.go#L338 technical-description
- https://github.com/gogs/gogs/blob/v0.14.4/internal/database/repo.go#L2631 technical-description
- VulnCheck Advisory: Gogs through 0.14.4 Private Fork Disclosure via Fork Listing Endpoint third-party-advisory