{"id":"CVE-2026-142316","summary":"Gonic through 0.23.0 Memory Exhaustion via Avatar Upload Image Dimensions","details":"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.","modified":"2026-12-02T18:01:05.590499858Z","published":"2026-12-02T16:48:33.987Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-789"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142316.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142316.json"},{"type":"PACKAGE","url":"https://github.com/sentriz/gonic"},{"type":"ARTICLE","url":"https://github.com/sentriz/gonic/blob/v0.23.0/server/ctrladmin/handlers.go#L677-L696"},{"type":"FIX","url":"https://github.com/sentriz/gonic/commit/3294de97e583ce3254120a68911684a095322911"},{"type":"FIX","url":"https://github.com/sentriz/gonic/pull/754"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142316"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/gonic-through-0.23.0-memory-exhaustion-via-avatar-upload-image-dimensions"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sentriz/gonic","events":[{"introduced":"0"},{"last_affected":"ca39c87e8ea932a9ea1ce15573d887dc0f525bf2"},{"fixed":"3294de97e583ce3254120a68911684a095322911"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"0.23.0"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"3294de97e583ce3254120a68911684a095322911"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.23.0","v0.22.0","v0.21.0","v0.20.1","v0.20.0","v0.19.0","v0.18.0","v0.17.0","v0.16.4","v0.16.3","v0.16.2","v0.16.1","v0.16.0","v0.16.0-rc1","v0.15.2","v0.15.1","v0.15.0","v0.14.0","v0.13.1","v0.13.0","v0.12.3","v0.12.2","v0.12.1","v0.12.0","v0.11.1","v0.11.0","v0.10.3","v0.10.2","v0.10.1","v0.10.0","v0.9.6","v0.9.5","v0.9.4","v0.9.3","v0.9.2","v0.9.1","v0.9.0","v0.8.8","v0.8.7","v0.8.6","v0.8.5","v0.8.4","v0.8.3","v0.8.2","v0.8.1","v0.8.0","v0.7.4","v0.7.3","v0.7.2","v0.7.1","v0.7.0","v0.6.3","v0.6.2","v0.6.1","v0.6.0","v0.5.2","v0.5.1","v0.5.0","v0.4.3","v0.4.2","v0.4.1","v0.4.0","v0.3.0","v0.2.1","v0.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142316.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}