CVE-2022-3008
Command Injection on tinygltf
Reported by google · Published September 5, 2022
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
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tinygltf | tinygltf_project | 2.6.0 |
| tinygltf | syoyo | 2.6.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| syoyo | tinygltf | unspecified |
| syoyo | tinygltf | * |
Timeline
- Sep 5, 2022 CVE Published
- Sep 6, 2022 EPSS Score (30 in total, the first dated here)
- Apr 21, 2025 CVE Updated
- Mar 10, 2026 Distribution Patch
- Mar 10, 2026 Security Advisory (2 in total, the first dated here)
- Jun 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-3008
vulnetix vdb fixes CVE-2022-3008
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-3008/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- DSA-5232 vendor-advisoryx_refsource_DEBIAN