PT-2022-7691 · Tinygltf+2 · Tinygltf+2
Oliverchang
·
Published
2022-09-05
·
Updated
2024-11-26
·
CVE-2022-3008
CVSS v2.0
10
High
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
tinygltf versions prior to 2.6.0
Description
The tinygltf library has an issue related to the use of the C library function
wordexp() for file path expansion on untrusted paths from input files. This allows for command injection using backticks. An attacker could craft a malicious path input to exploit this, potentially leading to arbitrary code execution by sending specially formed commands.Recommendations
For versions prior to 2.6.0, upgrade to version 2.6.0 or apply the changes from commit 52ff00a38447f06a17eab1caa2cf0730a119c751 to resolve the issue. As a temporary workaround, consider restricting the use of the
wordexp() function until a patch is applied.Exploit
Fix
OS Command Injection
Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Linuxmint
Ubuntu
Tinygltf