Skip to content
Heist/ feed
Back to feed
HighFix available

godot — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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. 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.

Products
godot
Affected versions
3.0.6-2build1, 3.0.6-2build2, 3.2-stable-2, 3.2.3-stable-1, 3.2.3-stable-1build1, 3.2.3-stable-1build2, 4.6.3+ds-1, 4.6.3+ds-2
Fixed versions
3.2-stable-2ubuntu0.1~esm1, 3.2.3-stable-1ubuntu0.1~esm1
CVEs
CVE-2021-26825
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:35 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-26825

core-osv · Original source

Published 8 Feb 2021, 15:15 UTC

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.

osv:UBUNTU-CVE-2021-26825

godot

Fixed versions: 3.2-stable-2ubuntu0.1~esm1

godot

Fixed versions: 3.2.3-stable-1ubuntu0.1~esm1

godot

Fixed versions: Not specified

Complete source record
{
  "id": "f6b360373f7602ed42fa5f1fb7aba9232641f7d7c27ac56691d164f089f01450",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-26825",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-26825",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2021-26825",
    "products": [
      {
        "name": {
          "value": "godot",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2-stable-2ubuntu0.1~esm1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.0.6-2build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.6-2build2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.2-stable-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "godot",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2.3-stable-1ubuntu0.1~esm1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.2.3-stable-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2.3-stable-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2.3-stable-1build2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "godot",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.6.3+ds-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.6.3+ds-2",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2021-26825",
      "aliases": [
        "UBUNTU-CVE-2021-26825"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.2-stable-2ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "godot",
            "purl": "pkg:deb/ubuntu/godot?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "3.0.6-2build1",
            "3.0.6-2build2",
            "3.2-stable-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-26825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "godot3",
                "binary_version": "3.2-stable-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "godot3-runner",
                "binary_version": "3.2-stable-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "godot3-server",
                "binary_version": "3.2-stable-2ubuntu0.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.2.3-stable-1ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "godot",
            "purl": "pkg:deb/ubuntu/godot?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "3.2.3-stable-1",
            "3.2.3-stable-1build1",
            "3.2.3-stable-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-26825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "godot3",
                "binary_version": "3.2.3-stable-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "godot3-runner",
                "binary_version": "3.2.3-stable-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "godot3-server",
                "binary_version": "3.2.3-stable-1ubuntu0.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "godot",
            "purl": "pkg:deb/ubuntu/godot?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.6.3+ds-1",
            "4.6.3+ds-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-26825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "godot",
                "binary_version": "4.6.3+ds-2"
              },
              {
                "binary_name": "godot-template-debug",
                "binary_version": "4.6.3+ds-2"
              },
              {
                "binary_name": "godot-template-release",
                "binary_version": "4.6.3+ds-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:11.846380878Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-26825"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-26825",
        "https://github.com/godotengine/godot/pull/45702",
        "https://github.com/godotengine/godot/commit/113b5ab1c45c01b8e6d54d13ac8876d091f883a8",
        "https://github.com/godotengine/godot/pull/45702/files",
        "https://www.cve.org/CVERecord?id=CVE-2021-26825",
        "https://ubuntu.com/security/notices/USN-7579-1"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-26825",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356884,
  "published_at": "2021-02-08T15:15:00+00:00"
}