Vulnerability · Published Sep 5, 2022 · Assigned by Google
CVE-2022-3008Command Injection on tinygltf
High 8.1
In plain English
A high-severity OS command injection in tinygltf from syoyo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 3.1% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | tinygltf | 2.5.0+dfsg-5 | DEBIAN-CVE-2022-3008 |
| Debian:13 | tinygltf | 2.5.0+dfsg-5 | DEBIAN-CVE-2022-3008 |
| Debian:14 | tinygltf | 2.5.0+dfsg-5 | DEBIAN-CVE-2022-3008 |
| Ubuntu:22.04:LTS | tinygltf | 2.5.0+dfsg-4ubuntu0.1 | USN-7129-1 |
| Ubuntu:22.04:LTS | tinygltf | 2.5.0+dfsg-4ubuntu0.1 | UBUNTU-CVE-2022-3008 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
References
- https://github.com/syoyo/tinygltf/commit/52ff00a38447f06a17eab1caa2cf0730a119c751 x_refsource_MISC
- https://github.com/syoyo/tinygltf/issues/368 x_refsource_MISC
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49053 x_refsource_MISC
- https://github.com/syoyo/tinygltf/blob/master/README.md x_refsource_MISC
- DSA-5232 vendor-advisory, x_refsource_DEBIAN