Integer Overflow Vulnerability in Godot Engine v3.2 ImageLoaderTGA::load_image() Function

Integer Overflow Vulnerability in Godot Engine v3.2 ImageLoaderTGA::load_image() Function

CVE-2021-26825 · HIGH Severity

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

An integer overflow issue exists in Godot Engine up to v3.2 that can be triggered when loading specially crafted.TGA image files. The vulnerability exists in ImageLoaderTGA::load_image() function at line: const size_t buffer_size = (tga_header.image_width * tga_header.image_height) * pixel_size; The bug leads to Dynamic stack buffer overflow. Depending on the context of the application, attack vector can be local or remote, and can lead to code execution and/or system crash.

Learn more about our Web Application Penetration Testing UK.