Gogs has a Denial of Service issue
Description
Published to the GitHub Advisory Database
Feb 6, 2026
Reviewed
Feb 6, 2026
Published by the National Vulnerability Database
Feb 6, 2026
Last updated
Feb 6, 2026
Summary
An authenticated user can cause a DOS attack. If one of the repo files is deleted before synchronization, it will cause the application to crash.
Details
If GetMirrorByRepoID fails, the error log dereferencing null pointer. This happens if the repository no longer exits.
https://github.com/gogs/gogs/blob/4cc83c498b6ae59356a04912d68a932165bad5e6/internal/database/mirror.go#L333-L337
if
err != nilmis alwasanilhttps://github.com/gogs/gogs/blob/4cc83c498b6ae59356a04912d68a932165bad5e6/internal/database/mirror.go#L269-L278
PoC
Spam mirror-sync on repo and delete this repo
code python spam mirror-sync
Impact
Denial of Service server crash.
References