Skip to content
OpenAdvisories
High · 8.1 CVE-2022-3008 EUVD-2022-42444GHSA-ghg5-6g69-q4q3

Command Injection on tinygltf

Published Sep 5, 2022 · Updated Apr 21, 2025 · Assigned by Google

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 products

VendorProductAffectedFixed
syoyo tinygltf unspecified – < 2.6.0 2.6.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 tinygltf 2.5.0+dfsg-5 —
Debian 13 tinygltf 2.5.0+dfsg-5 —
Debian 12 tinygltf 2.5.0+dfsg-5 —
Debian 11 tinygltf 2.5.0+dfsg-3+deb11u1 DSA-5232-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS tinygltf 2.5.0+dfsg-4ubuntu0.1 USN-7129-1

Advisories 2

References