CVE-2022-3008 Command Injection on tinygltf

High 8.1 Published Updated

Attackers can execute arbitrary commands via crafted file paths in tinygltf due to unsafe use of wordexp().

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-3008?

CVE-2022-3008 is a high-severity command injection vulnerability in Debian Debian Linux, published on 5 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-77, CWE-78

Which versions are affected by CVE-2022-3008?

It affects 2 products.

Products include Debian Debian Linux, Tinygltf Project Tinygltf.

How do I fix CVE-2022-3008?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-3008 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3008 exists.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-3008, DSA-5232-1, GHSA-ghg5-6g69-q4q3, UBUNTU-CVE-2022-3008, USN-7129-1.

Is CVE-2022-3008 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free