ClassiCube before 1.4.0 Heap Out-of-Bounds Write via Png_Decode Duplicate IHDR
ClassiCube
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ClassiCube ClassiCube |
|
|
Original description
ClassiCube before 1.4.0 contains a heap-based out-of-bounds write vulnerability in Png_Decode in src/Bitmap.c that allows malicious servers to corrupt client memory by sending a PNG with a duplicate IHDR chunk. Attackers can supply crafted PNGs via texture pack URLs or player skins so the unreset bufferIdx underflows remaining space, letting IDAT data overflow the buffer to crash clients or execute code.
From the CVE record · VulnCheck
References
- github.com/ClassiCube/ClassiCube/commit/c461fa759f218e3c6bda4642b9af79a98dc84a43Patch
- github.com/ClassiCube/ClassiCube/releases/tag/1.4.0
- github.com/ClassiCube/ClassiCube/blob/1.3.9/src/Bitmap.c#L529
- github.com/ClassiCube/ClassiCube
- vulncheck.com/advisories/classicube-before-1.4.0-heap-out-of-bounds-write-via-png-decode-duplicate-ihdr