Command Injection on tinygltf
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-78.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| syoyo | tinygltf | before 2.6.0 | 2.6.0 | Patch available | CNA |
- tinygltf Vendorsyoyo Affected before 2.6.0 Fixed in 2.6.0 Patch available CNA
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:tinygltf_project:tinygltf:*:*:*:*:*:*:*:* | before 2.6.0 | Vulnerable | Tinygltf Project |
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 11.0 | Vulnerable | Debian |
- cpe:2.3:a:tinygltf_project:tinygltf:*:*:*:*:*:*:*:* Versions before 2.6.0 Vulnerable ·Tinygltf Project
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
Remediation
- Fix · CNA tinygltf (syoyo) Fixed in 2.6.0
Timeline
- 2026-10-02 Threatist record created from CVE-2022-3008
- 2026-10-03 Alias added: GHSA-ghg5-6g69-q4q3
References
More syoyo vulnerabilities
- TI-2026-74091 Heap out-of-bounds read in Tinyexr multipart EXR header parsing CVSS 4.0MEDIUM 6.9
- TI-2026-49934 tinyobjloader-c Stack Buffer Overflow in MTL Material File Line Parsing CVSS 3.1HIGH 7.8
Sources
- CVE-2022-3008 · CVE Program
- CVE-2022-3008 · NVD
- FIRST EPSS
- GHSA-ghg5-6g69-q4q3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences