CVE-2022-3008

Command Injection on tinygltf

HIGH
8.8
CVSS Score
Published: September 5, 2022 at 09:10 AM UTC
Updated: June 17, 2026 at 04:58 AM UTC
3 products affected across 3 vendorsDebian LinuxTinygltfTinygltf

Using tinygltf by syoyo?

Get instant alerts when new vulnerabilities affect tinygltf - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 3%
SSVC
PoC

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.6.0
Affected range stops below 2.6.0, so it looks safe — our inference, not a vendor statement
v < 2.6.0
Affected range stops below 2.6.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

x_refsource_MISCExploitIssue TrackingMailing ListThird Party Advisory
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49053
x_refsource_MISCProductThird Party Advisory
https://github.com/syoyo/tinygltf/blob/master/README.md
x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory
https://github.com/syoyo/tinygltf/issues/368
Vendor Advisoryx_refsource_DEBIANThird Party Advisory
https://www.debian.org/security/2022/dsa-5232

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-78CWE-77

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card