# CVE-2022-3008: Command Injection on tinygltf

- Severity: High 8.1 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.21%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-09-05T09:10:11.000Z
- Modified: 2026-06-17T04:58:38.130Z
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Google

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

(As written by CVE List.)

## Affected

- syoyo tinygltf: from unspecified before 2.6.0
- tinygltf_project tinygltf: before 2.6.0
- debian debian_linux: 11.0

## Every score

- Google: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/syoyo/tinygltf/issues/368> (exploit, issue-tracking, patch, third-party-advisory)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49053> (exploit, issue-tracking, mailing-list, third-party-advisory)
- <https://github.com/syoyo/tinygltf/commit/52ff00a38447f06a17eab1caa2cf0730a119c751> (patch, third-party-advisory)
- <https://github.com/syoyo/tinygltf/blob/master/README.md> (product, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5232> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2022-3008](https://www.cve.org/CVERecord?id=CVE-2022-3008), CVE Terms of Use, modified 2025-04-21
- NVD: [CVE-2022-3008](https://nvd.nist.gov/vuln/detail/CVE-2022-3008), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3008 · Whole record: https://cve.day/CVE-2022-3008.json · Rebuilt by cve.day 2026-11-25T22:58:14.657Z
