What’s Vulnerable › Vulnerabilities
CVE-2022-3008: Command Injection on tinygltf
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-09-05 · updated 2026-06-17
- Weakness: CWE-78
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
- Debian Linux: 11.0
- Tinygltf Project Tinygltf: before 2.6.0 — fixed in 2.6.0
How to fix
Upgrade to a fixed version: Tinygltf Project Tinygltf 2.6.0. Check the vendor advisory for mitigations.
References
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49053
- https://github.com/syoyo/tinygltf/blob/master/README.md
- https://github.com/syoyo/tinygltf/commit/52ff00a38447f06a17eab1caa2cf0730a119c751
- https://github.com/syoyo/tinygltf/issues/368
- https://www.debian.org/security/2022/dsa-5232
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49053
- https://github.com/syoyo/tinygltf/blob/master/README.md
- https://github.com/syoyo/tinygltf/commit/52ff00a38447f06a17eab1caa2cf0730a119c751
- https://github.com/syoyo/tinygltf/issues/368
- https://www.debian.org/security/2022/dsa-5232
Get alerted when CVE-2022-3008 or the next vulnerability affects your stack