CVE-2026-71266 Details
Description
tinyobjloader-c's tinyobj_parse_and_index_mtl_file (tinyobj_loader_c.h) reads each line of a .mtl material file into a fixed 4096-byte stack buffer via memcpy(linebuf, p, p_len), guarded only by . The identical vulnerable pattern is duplicated in a second function in the same file.
A stack buffer overflow vulnerability has been identified in tinyobjloader-c, specifically within the function tinyobj_parse_and_index_mtl_file() in tinyobj_loader_c.h. This vulnerability arises because the function reads lines from a .mtl material file into a fixed 4096-byte stack buffer named linebuf, using memcpy. The operation is only partially safeguarded by an assertion that the length of the input line is less than 4095 bytes. In release builds, this assertion is disabled, allowing a crafted .mtl file to overflow linebuf and corrupt adjacent stack variables, including namebuf. This exploitation can disrupt the stack of any application that processes attacker-controlled 3D model or material files.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 5, 2026CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/syoyo/tinyobjloader-c | TuranSec | Vendor |
| https://github.com/syoyo/tinyobjloader-c/blob/master/tinyobj_loader_c.h | TuranSec | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-121 | Stack-based Buffer Overflow | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| tinyobjloader-c | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 10, 2026 | CVE Modified | TuranSec |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | New CVE Received | TuranSec |
Volerion