CVE-2026-142316: Gonic through 0.23.0 Memory Exhaustion via Avatar Upload Image Dimensions

Published Dec 2, 2026
·
Updated

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

1 affected component
gonic gonic<=0.23.0

Event History

Dec 2, 2026
CVE Published
via MITRE·04:48 PM
Data Sourced
via MITRE·04:48 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:18 PM
DescriptionSeverityWeakness
Event
via NVD·05:18 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203