# CVE-2021-26825: An integer overflow issue exists in Godot Engine up to v3.2 that can be triggered when loading specially crafted.TGA image files.

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.61%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-02-08T14:58:40.000Z
- Modified: 2026-06-17T03:43:49.513Z
- Weaknesses: CWE-190
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- godotengine godot_engine: up to 3.2

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/godotengine/godot/pull/45702> (patch, third-party-advisory)
- <https://github.com/godotengine/godot/pull/45702/files> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-26825](https://www.cve.org/CVERecord?id=CVE-2021-26825), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-26825](https://nvd.nist.gov/vuln/detail/CVE-2021-26825), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-26825 · Whole record: https://cve.day/CVE-2021-26825.json · Rebuilt by cve.day 2026-11-25T22:57:59.837Z
