Integer Overflow or Wraparound Affecting godot_engine package, versions [,3.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.61% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-GODOTENGINE-2371987
  • published26 Jan 2022
  • disclosed8 Feb 2021
  • creditUnknown

Introduced: 8 Feb 2021

CVE-2021-26825  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade godot_engine to version 3.3 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. 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.

CVSS Base Scores

version 3.1