Arbitrary Command Injection Affecting tinygltf package, versions <2.5.0+dfsg-4ubuntu0.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.08% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU2204-TINYGLTF-3017635
  • published19 Nov 2024
  • disclosed5 Sept 2022

Introduced: 5 Sep 2022

CVE-2022-3008  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 tinygltf to version 2.5.0+dfsg-4ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tinygltf package and not the tinygltf package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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

CVSS Scores

version 3.1