๐Ÿ” CVE Alert

CVE-2026-71266

HIGH 7.8

tinyobjloader-c Stack Buffer Overflow in MTL Material File Line Parsing

CVSS Score
7.8
EPSS Score
0.0%
EPSS Percentile
0th

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 `linebuf` via memcpy(linebuf, p, p_len), guarded only by `assert(p_len < 4095)`. Because assert() compiles to a no-op under -DNDEBUG (standard for release builds), a crafted .mtl file containing a line (e.g. a "newmtl" material name) longer than 4096 bytes overflows linebuf into the adjacent stack variable namebuf and beyond, corrupting the stack of any application that loads attacker-supplied 3D model/material files. The identical vulnerable pattern is duplicated in a second function in the same file.

CWE CWE-121
Vendor syoyo
Product tinyobjloader-c
Published Aug 5, 2026
Stay Ahead of the Next One

Get instant alerts for syoyo tinyobjloader-c

Be the first to know when new high vulnerabilities affecting syoyo tinyobjloader-c are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

syoyo / tinyobjloader-c
0 โ‰ค *

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/syoyo/tinyobjloader-c github.com: https://github.com/syoyo/tinyobjloader-c/blob/master/tinyobj_loader_c.h

Credits

Alibek Baxtiyorov