CVE-2026-71266: tinyobjloader-c Stack Buffer Overflow in MTL Material File Line Parsing

Published Aug 5, 2026
·
Updated

tinyobjloader-c's tinyobjparseandindexmtlfile() (tinyobjloaderc.h) reads each line of a .mtl material file into a fixed 4096-byte stack buffer linebuf via memcpy(linebuf, p, plen), guarded only by assert(plen < 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.

Affected Software

2 affected components
tinyobjloader tinyobjloader-c
tinyobjloader-c=

Event History

Aug 5, 2026
CVE Published
via MITRE·12:26 PM
Data Sourced
via MITRE·12:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:24 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-71266?

CVE-2026-71266 has a high severity score of 7.8.

2

What is the nature of the vulnerability in CVE-2026-71266?

CVE-2026-71266 is a stack buffer overflow vulnerability that occurs during MTL material file line parsing.

3

How do I fix CVE-2026-71266?

To mitigate CVE-2026-71266, ensure that the input size is validated before copying data into the buffer.

4

What software is affected by CVE-2026-71266?

CVE-2026-71266 affects tinyobjloader and tinyobjloader-c.

5

What happens if CVE-2026-71266 is exploited?

Exploitation of CVE-2026-71266 could lead to remote code execution or application crashes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203