Description
cgltf version 1.15 and prior contain an integer overflow vulnerability in the cgltf_validate() function when validating sparse accessors that allows attackers to trigger out-of-bounds reads by supplying crafted glTF/GLB input files with attacker-controlled size values. Attackers can exploit unchecked arithmetic operations in sparse accessor validation to cause heap buffer over-reads in cgltf_calc_index_bound(), resulting in denial of service crashes and potential memory disclosure.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jkuhlmann | cgltf | ≤ 1.15.0 | — |
References
- https://github.com/jkuhlmann/cgltf/issues/287 technical-description exploit issue-tracking
- https://github.com/jkuhlmann/cgltf/pull/293 issue-tracking patch
- https://www.vulncheck.com/advisories/jkuhlmann-cgltf-sparse-accessor-validation-integer-overflow third-party-advisory