CVE-2022-3008Command Injection on tinygltf
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
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | tinygltf | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | tinygltf | Fixed | 2.5.0+dfsg-4ubuntu0.1 | UBUNTU-CVE-2022-3008 |
| Debian 14 | tinygltf | Fixed | 2.5.0+dfsg-5 | DEBIAN-CVE-2022-3008 |
| Debian 13 | tinygltf | Fixed | 2.5.0+dfsg-5 | DEBIAN-CVE-2022-3008 |
| Debian 12 | tinygltf | Fixed | 2.5.0+dfsg-5 | DEBIAN-CVE-2022-3008 |
What the vendor says
As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- syoyo tinygltf: affected: unspecified to before 2.6.0; fixed in
2.6.0
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5232 (vendor-advisory)
References
- https://github.com/syoyo/tinygltf/commit/52ff00a38447f06a17eab1caa2cf0730a119c751
- https://github.com/syoyo/tinygltf/issues/368
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49053
- https://github.com/syoyo/tinygltf/blob/master/README.md
- https://www.debian.org/security/2022/dsa-5232
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.