Skip to content
Info disclosure Advisory Intermediate CVE-2020-28591

Slic3r libslic3r AMF File AMFParserContext::endElement() out-of-bounds read vulnerability

An out-of-bounds read vulnerability exists in the AMF file parser of Slic3r libslic3r, where a crafted AMF file can cause the parser to read beyond the allocated vertex array, leading to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.

Lilith >_> Follow

Originally disclosed on Cisco Talos

High 8.6 View original

An out-of-bounds read vulnerability exists in the AMF File AMFParserContext::endElement() functionality of Slic3r libslic3r 1.3.0 and Master Commit 92abbc42. A specially crafted AMF file can lead to information disclosure.

Lilith >_>, on Cisco Talos

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 parser does not validate that vertex indices from the AMF file are within the bounds of the vertex array before using them to copy vertex data.

Impact

A crafted AMF file could cause an out-of-bounds read, potentially leading to information disclosure.

What the attacker needed

Victim opens a malicious AMF file

How it was found

  1. Craft an AMF file with a triangle element containing vertex indices that exceed the number of vertices.
  2. Open the crafted AMF file in Slic3r or a program using libslic3r.
  3. The parser reads out-of-bounds memory when processing the volume element.

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 in AMF format, it reads vertex numbers from the file and uses them to look up coordinates in a list. If the file contains vertex numbers that are too large, the program reads memory outside the list, which can leak data. This is like using an index that points past the end of an array.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Lilith >_>

View all

148 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.