Critical Vulnerability in tinyobjloader Package: Improper Array Index Validation

tinyobjloader Updated 04 Oct 2025

Summary

11/08/2021
N/A
No i
Critical
9.6

UBUNTU-CVE-2020-28589: An improper array index validation vulnerability exists in the LoadObj functionality of tinyobjloader v2.0-rc1 and tinyobjloader development commit 79d4421. Affects tinyobjloader versions 2.0.0~rc5+dfsg1-4build1 – 2.0.0~rc5+dfsg1-5build1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

tinyobjloader is a lightweight C++ library designed for loading 3D models in the OBJ format. It is widely used in graphics applications for its simplicity and efficiency. However, the library has been found to have a critical vulnerability that affects its LoadObj functionality, which can lead to severe security risks if exploited.

Vulnerability Detail

An improper array index validation vulnerability exists in the LoadObj functionality of tinyobjloader v2.0-rc1 and development commit 79d4421. This flaw allows an attacker to craft a malicious file that, when processed by the library, could lead to code execution on the host system. The vulnerability has a CVSS score of 9.6, indicating a critical severity level, and poses significant risks including unauthorized access and potential system compromise.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid processing untrusted or unknown OBJ files with tinyobjloader until the package is updated. Implement strict validation of input files to prevent potential exploitation.

Conclusion

The tinyobjloader package has a critical vulnerability that can lead to code execution through improper array index validation. It is crucial for users to update to the latest patched version to protect their systems from potential exploitation. Implementing workarounds and using tools like Vulert can help monitor and mitigate risks associated with this vulnerability.

See every vulnerability recorded for tinyobjloader →

Share this vulnerability

FAQ

tinyobjloader is a C++ library used for loading 3D models in the OBJ format, commonly utilized in graphics applications.

The vulnerability involves improper array index validation, allowing attackers to execute arbitrary code by providing specially crafted OBJ files.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. Visit Vulert Scanner to check your application without signup.

The CVSS score of this vulnerability is 9.6, indicating a critical severity level.

If an immediate update is not possible, avoid using tinyobjloader with untrusted files and implement input validation as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for tinyobjloader.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback