CVEfocus › CVE database › CVE-2022-3008

CVE-2022-3008Command Injection on tinygltf

CVSS 8.1 HighEPSS 4.3% (higher than 92% of CVEs)Published 2022-09-05Updated 2025-04-21Assigner: Google

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

CWE-78

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

4Fixed
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04tinygltfNot affected
vulnerable_code_not_present
Ubuntu 22.04tinygltfFixed2.5.0+dfsg-4ubuntu0.1UBUNTU-CVE-2022-3008
Debian 14tinygltfFixed2.5.0+dfsg-5DEBIAN-CVE-2022-3008
Debian 13tinygltfFixed2.5.0+dfsg-5DEBIAN-CVE-2022-3008
Debian 12tinygltfFixed2.5.0+dfsg-5DEBIAN-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.

Vendor advisories:

References

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.