Slic3r libslic3r Obj File TriangleMesh::TriangleMesh() out-of-bounds read vulnerability
An out-of-bounds read vulnerability exists in Slic3r's handling of OBJ files, where facet vertex indices from the file are used without validation to index into a points array. An attacker could craft a malicious OBJ file to read arbitrary memory, potentially leading to information disclosure.
Originally disclosed on Cisco Talos
An out-of-bounds read vulnerability exists in the Obj File TriangleMesh::TriangleMesh() functionality of Slic3r libslic3r 1.3.0 and Master Commit 92abbc42. A specially crafted obj file could lead to information disclosure.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The program does not validate vertex indices from the OBJ file before using them to index into the points array, leading to an out-of-bounds read.
Impact
An attacker could read arbitrary memory, potentially leading to information disclosure, though utilising the data would require further work.
What the attacker needed
Malicious OBJ file; victim opens file in Slic3r
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When Slic3r opens a 3D model file, it reads numbers that say which points make up each triangle. The program trusts these numbers and uses them to look up points in a list, but if a number is huge or negative, it reads memory outside the list. This can crash the program or leak data from memory.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.