{"id":"CVE-2022-3008","aliases":["DEBIAN-CVE-2022-3008","DSA-5232-1","EUVD-2022-42444","GHSA-ghg5-6g69-q4q3","UBUNTU-CVE-2022-3008","USN-7129-1"],"status":"published","title":"Command Injection on tinygltf","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","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.0312,"percentile":0.8793,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-78"],"published":"2022-09-05T09:10:11Z","modified":"2026-10-28T10:28:57Z","fixes":[{"ecosystem":"Debian:12","package":"tinygltf","fixed_in":["2.5.0+dfsg-5"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"tinygltf","fixed_in":["2.5.0+dfsg-5"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"tinygltf","fixed_in":["2.5.0+dfsg-5"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"tinygltf","fixed_in":["2.5.0+dfsg-3+deb11u1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"tinygltf","fixed_in":["2.5.0+dfsg-4ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"tinygltf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0+dfsg-5"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"tinygltf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0+dfsg-5"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"tinygltf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0+dfsg-5"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"tinygltf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0+dfsg-3+deb11u1"}]}],"versions":["2.5.0+dfsg-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"tinygltf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0+dfsg-4ubuntu0.1"}]}],"versions":["2.5.0+dfsg-3build1","2.5.0+dfsg-4"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"tinygltf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0+dfsg-4ubuntu0.1"}]}],"versions":["2.5.0+dfsg-3build1","2.5.0+dfsg-4"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"syoyo","product":"tinygltf"},{"vendor":"tinygltf_project","product":"tinygltf"}],"references":[{"url":"https://github.com/syoyo/tinygltf/commit/52ff00a38447f06a17eab1caa2cf0730a119c751","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/syoyo/tinygltf/issues/368","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","report"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49053","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Mailing List","Third Party Advisory","web","report"]},{"url":"https://github.com/syoyo/tinygltf/blob/master/README.md","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","web","report"]},{"url":"https://www.debian.org/security/2022/dsa-5232","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3008","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-ghg5-6g69-q4q3"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3008.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-3008","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-3008","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-3008","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7129-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-3008","title":"Command Injection on tinygltf","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","status":"published","published":"2022-09-05T09:10:11Z","modified":"2025-04-21T13:50:13.934Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:34:33.24035Z"}],"euvd":[{"id":"EUVD-2022-42444","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","status":"published","published":"2022-09-05T09:10:11Z","modified":"2025-04-21T13:50:13Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T20:52:18.663123Z"}],"ghsa":[{"id":"GHSA-ghg5-6g69-q4q3","title":"The tinygltf library uses the C library function wordexp() to perform file path expansion on...","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","status":"published","published":"2022-09-06T00:00:27Z","modified":"2023-01-31T05:04:12Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:48:37.736488Z"}],"nvd":[{"id":"CVE-2022-3008","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","status":"published","published":"2022-09-05T09:15:10.11Z","modified":"2026-06-17T04:58:38.13Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-78","CWE-77"],"updated_at":"2026-11-02T14:07:26.802986Z"}],"osv":[{"id":"CVE-2022-3008","title":"Command Injection on tinygltf","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","status":"published","published":"2022-09-05T09:10:11Z","modified":"2026-10-28T10:28:57.060642979Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:44:25.516981Z"},{"id":"DEBIAN-CVE-2022-3008","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","status":"published","published":"2022-09-05T09:15:10.11Z","modified":"2026-11-03T08:02:12.844934797Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T08:24:50.542442Z"},{"id":"UBUNTU-CVE-2022-3008","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","status":"published","published":"2022-09-05T09:15:00Z","modified":"2026-04-22T13:22:25.098374Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:53.899276Z"},{"id":"DSA-5232-1","title":"tinygltf - security update","status":"published","published":"2022-09-21T00:00:00Z","modified":"2026-03-09T02:09:23.827221Z","updated_at":"2026-11-02T15:46:17.543497Z"},{"id":"USN-7129-1","title":"TinyGLTF vulnerability","description":"It was discovered that TinyGLTF performed file path expansion in an\ninsecure way on certain inputs. An attacker could possibly use this\nissue to cause a denial of service, or execute arbitrary code.\n","status":"published","published":"2024-11-26T15:43:14Z","modified":"2026-04-22T10:53:44.992353Z","updated_at":"2026-11-02T16:58:18.876384Z"}]}}
