PT-2026-6755 · Gogs · Gogs
Neptunium931
·
Published
2026-02-06
·
Updated
2026-03-03
·
CVE-2026-22592
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Gogs versions prior to 0.13.4
Gogs versions prior to 0.14.0+dev
Description
Gogs is a self-hosted Git service susceptible to a denial-of-service (DOS) attack. An authenticated user can trigger a crash by initiating a mirror synchronization on a repository and then deleting the repository before the synchronization completes. Specifically, the issue occurs when the
GetMirrorByRepoID function fails, leading to a null pointer dereference. The vulnerable code is located in internal/database/mirror.go lines 333-337 and 269-278. A proof-of-concept (PoC) involves repeatedly triggering mirror synchronization via the /superuser/gobypass403/settings API endpoint using the action parameter set to 'mirror-sync' while simultaneously deleting the repository.Recommendations
Versions prior to 0.13.4 should be updated to version 0.13.4 or later.
Versions prior to 0.14.0+dev should be updated to version 0.14.0+dev or later.
Exploit
Fix
DoS
Missing Authorization
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gogs