Code execution via negative vertex array index
Published Aug 11, 2021 · Updated Aug 4, 2024
Improper array index validation in TinyObjLoader 2.0-rc1 and development commit 79d4421 allows attackers to execute code via a crafted OBJ file. In tiny_obj_loader.h, exportGroupsToShape accepts a negative vertex index; the caller later uses it to read attrib.vertices out of bounds. Execution requires an application embedding the library to parse attacker-controlled OBJ data, and impact occurs in that host process context.
Summary
What happened
Improper array index validation in TinyObjLoader 2.0-rc1 and development commit 79d4421 allows attackers to execute code via a crafted OBJ file. In tiny_obj_loader.h, exportGroupsToShape accepts a negative vertex index; the caller later uses it to read attrib.vertices out of bounds. Execution requires an application embedding the library to parse attacker-controlled OBJ data, and impact occurs in that host process context.
The record
- CVE
- CVE-2020-28589
- Published
- Aug 11, 2021
- Updated
- Aug 4, 2024
- Vendor
- TinyObjLoader Project
- Product
- TinyObjLoader
- Classifications
- CWE-129, CAPEC-100, T1203, T1204.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 11, 2021CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=tinyobjloader development commit 79d4421 , tinyobjloader v2.0-rc1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Crafted OBJ proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo