AploSec / Disclosures / CVE-2026-142316
Gonic through 0.23.0 Memory Exhaustion via Avatar Upload Image Dimensions
CVE-2026-142316 · published 2026-12-02
In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). No fixed release is listed yet.
Summary
CVE-2026-142316 affects gonic (Go) <= 0.23.0: Memory Exhaustion via Avatar Upload Image Dimensions (CWE-789). No fixed release is listed. CVSS 4.0 base score 7.1 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
Gonic through 0.23.0 contains a memory exhaustion vulnerability in the POST /admin/change_avatar_do 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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
No fixed release is listed in the advisory. Check the references for upstream status.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/gonic-through-0.23.0-memory-exhaustion-via-avatar-upload-image-dimensions
- Fix pull requesthttps://github.com/sentriz/gonic/pull/754
- Vulnerable codehttps://github.com/sentriz/gonic/blob/v0.23.0/server/ctrladmin/handlers.go#L677-L696
- Fix commithttps://github.com/sentriz/gonic/commit/3294de97e583ce3254120a68911684a095322911
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142316
- Severity
- High 7.1CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- gonic
- Ecosystem
- Go
- Affected
- <= 0.23.0
- Fixed
- None
- Weakness
- CWE-789
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder