All advisories

Security advisoryCVE-2026-133307

ClassiCube before 1.4.0 Heap Out-of-Bounds Write via Png_Decode Duplicate IHDR

Published:

Severity
High8.7
Vulnerability type
Out-of-bounds Write (CWE-787)
Fixed in
ClassiCube 1.4.0
Credit
Discovered by Deus Rex Research
Published

CVSS 4.0 vector8.7 High

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1 vector8.8 High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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.

Affected versions

ClassiCube< 1.4.0

Remediation

Fixed in ClassiCube 1.4.0. View the upstream fix (opens in a new tab)

References

Advisories may be reused freely, without charge or registration.

To report a vulnerability in Deus Rex, contact disclosure@cyrex.tech.