Description
The tinygltf library uses the C library function wordexp() to perform file path expansion on untrusted paths that are provided from the input file. This function allows for command injection by using backticks. An attacker could craft an untrusted path input that would result in a path expansion. We recommend upgrading to 2.6.0 or past commit 52ff00a38447f06a17eab1caa2cf0730a119c751
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| syoyo | tinygltf | unspecified – < 2.6.0 | 2.6.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | tinygltf | 2.5.0+dfsg-5 | — |
| Debian 13 | tinygltf | 2.5.0+dfsg-5 | — |
| Debian 12 | tinygltf | 2.5.0+dfsg-5 | — |
| Debian 11 | tinygltf | 2.5.0+dfsg-3+deb11u1 | DSA-5232-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | tinygltf | 2.5.0+dfsg-4ubuntu0.1 | USN-7129-1 |
Advisories 2
- USN-7129-1 TinyGLTF vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-5232-1 tinygltf - security update Debian Security (DSA / DLA) · Mar 9, 2026