Skip to content

CVE-2022-3008 Command Injection on tinygltf

HighCVSS 8.8 EPSS 3.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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

Upgrade path

7 packages: 6 fixed.

PackageAffectedFixed inStatus
debian/tinygltf(Debian 12) < 2.5.0+dfsg-5 2.5.0+dfsg-5 Fixed
debian/tinygltf(Debian 13) < 2.5.0+dfsg-5 2.5.0+dfsg-5 Fixed
debian/tinygltf(Debian 14) < 2.5.0+dfsg-5 2.5.0+dfsg-5 Fixed
syoyo tinygltf < 2.6.0 2.6.0 Fixed
tinygltf project tinygltf < 2.6.0 2.6.0 Fixed
ubuntu/tinygltf(Ubuntu 22.04) < 2.5.0+dfsg-4ubuntu0.1; = 2.5.0+dfsg-3build1; = 2.5.0+dfsg-4 2.5.0+dfsg-4ubuntu0.1 Fixed
debian linux = 11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
syoyo tinygltf < 2.6.0 2.6.0
ubuntu/tinygltf(Ubuntu:22.04) < 2.5.0+dfsg-4ubuntu0.1 2.5.0+dfsg-4ubuntu0.1
tinygltf project tinygltf < 2.6.0 2.6.0
debian linux = 11.0 No fix listed
debian/tinygltf(Debian:12) < 2.5.0+dfsg-5 2.5.0+dfsg-5
debian/tinygltf(Debian:14) < 2.5.0+dfsg-5 2.5.0+dfsg-5
debian/tinygltf(Debian:13) < 2.5.0+dfsg-5 2.5.0+dfsg-5
ubuntu/tinygltf(Ubuntu:22.04) = 2.5.0+dfsg-3build1 No fix listed
ubuntu/tinygltf(Ubuntu:22.04) = 2.5.0+dfsg-4 No fix listed

References