CVE-2026-71266: CWE-121 in syoyo tinyobjloader-c
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.
AI Analysis
Technical Summary
The vulnerability in tinyobjloader-c arises from the function tinyobj_parse_and_index_mtl_file reading each line of a .mtl material file into a fixed 4096-byte stack buffer using memcpy(linebuf, p, p_len) without adequate boundary checks. This results in a stack-based buffer overflow (CWE-121). The same unsafe coding pattern is duplicated in another function within the same source file. The CVSS 3.1 vector indicates the attack requires local access (AV:L), low attack complexity (AC:L), no privileges required (PR:N), user interaction required (UI:R), unchanged scope (S:U), and results in high impact on confidentiality, integrity, and availability (C:H/I:H/A:H). No patch or official remediation has been disclosed yet.
Potential Impact
Successful exploitation of this vulnerability can lead to a stack-based buffer overflow, potentially allowing an attacker to execute arbitrary code, escalate privileges, or cause denial of service. The CVSS score of 7.8 reflects high impact on confidentiality, integrity, and availability. However, exploitation requires local access and user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid processing untrusted .mtl material files with tinyobjloader-c or apply manual code review and hardening to ensure buffer boundaries are respected. Monitor for vendor updates or patches addressing this issue.
CVE-2026-71266: CWE-121 in syoyo tinyobjloader-c
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.
CVSS v3.1
Score 7.8high
Affected software
syoyo
tinyobjloader-c
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in tinyobjloader-c arises from the function tinyobj_parse_and_index_mtl_file reading each line of a .mtl material file into a fixed 4096-byte stack buffer using memcpy(linebuf, p, p_len) without adequate boundary checks. This results in a stack-based buffer overflow (CWE-121). The same unsafe coding pattern is duplicated in another function within the same source file. The CVSS 3.1 vector indicates the attack requires local access (AV:L), low attack complexity (AC:L), no privileges required (PR:N), user interaction required (UI:R), unchanged scope (S:U), and results in high impact on confidentiality, integrity, and availability (C:H/I:H/A:H). No patch or official remediation has been disclosed yet.
Potential Impact
Successful exploitation of this vulnerability can lead to a stack-based buffer overflow, potentially allowing an attacker to execute arbitrary code, escalate privileges, or cause denial of service. The CVSS score of 7.8 reflects high impact on confidentiality, integrity, and availability. However, exploitation requires local access and user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid processing untrusted .mtl material files with tinyobjloader-c or apply manual code review and hardening to ensure buffer boundaries are respected. Monitor for vendor updates or patches addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.967Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7336e4bf8831d539ed9139
Added to database: 08/05/2026, 13:13:08 UTC
Last enriched: 08/12/2026, 14:32:04 UTC
Last updated: 09/17/2026, 22:01:38 UTC
Views: 29
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.