CVE-2026-142316: Gonic through 0.23.0 Memory Exhaustion via Avatar Upload Image Dimensions
Gonic through 0.23.0 contains a memory exhaustion vulnerability in the POST /admin/changeavatardo handler that decodes uploaded avatars without checking declared image dimensions. Authenticated low-privileged users can upload a compressible PNG, GIF, or JPEG declaring huge dimensions to force multi-gigabyte allocations and crash gonic for all users.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user with low-privileged access can exploit it. The attacker must be able to submit an avatar upload to the POST /admin/change_avatar_do handler.
What is the impact on a vulnerable deployment?
A crafted, highly compressible PNG, GIF, or JPEG with declared huge dimensions can trigger multi-gigabyte memory allocations. This can crash Gonic and deny service to all users.
Are installations through version 0.23.0 affected?
The issue is described as affecting Gonic through version 0.23.0. Deployments that allow low-privileged authenticated users to upload avatars are exposed to the documented attack path.