{
  "id": "security/cpp/axmolengine__axmol/2026-11-29-tga-rle-unchecked-pixeldepth-stack-overflow",
  "title": "TGA RLE decoder stack buffer overflow via unchecked pixelDepth",
  "category": "security",
  "type": "memory-safety",
  "severity": "high",
  "cvss": {
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
    "score": 7.8
  },
  "ecosystem": "cpp",
  "project": {
    "owner": "axmolengine",
    "repo": "axmol",
    "url": "https://github.com/axmolengine/axmol"
  },
  "affected_versions": [
    "<= latest"
  ],
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-9w6v-gqfh-3768",
    "cve_id": null,
    "url": "https://github.com/axmolengine/axmol/security/advisories/GHSA-9w6v-gqfh-3768",
    "published_at": "2026-11-29T07:18:46+03:00"
  },
  "summary": "When axmol loads a TGA image, the RLE decoder takes pixelDepth from the file header and copies that many bytes into a 4-byte stack buffer, so a file with pixelDepth greater than 32 can write past the buffer (CWE-121, CWE-787). The advisory lists affected versions as <= latest and lists no patched version. GitHub rates it high, with CVSS 3.1 score 7.8. There is no CVE. The code fix removes TGAlib in pull request 3439, merged to dev, and pull request 3440, merged to release/2.x. The fix is on dev and is not yet in a release. The latest release is still v2.11.5. The advisory credits Ugur Celik (ucsurf).",
  "discovered_at": "2026-11-29T07:18:46+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-11-30T10:00:00+03:00",
  "pr": {
    "url": "https://github.com/axmolengine/axmol/pull/3439",
    "state": "merged",
    "merged_at": null,
    "number": 3439
  },
  "references": [
    "https://github.com/axmolengine/axmol/pull/3440",
    "https://github.com/axmolengine/axmol/commit/ee7f59828042cae1d4caba3684a2ceebb1d94c8c",
    "https://github.com/axmolengine/axmol/releases/tag/v2.11.5"
  ]
}
