Arbitrary code execution via unchecked PLY face count
Published Jul 19, 2024 · Updated Mar 25, 2025
Heap-based buffer overflow in Assimp before 5.4.2 allows local users to execute arbitrary code by importing a crafted PLY file. PLYImporter::LoadFace reuses an allocated mFaces array without verifying that a later face element's NumOccur value fits, so face loading writes past the heap allocation. The attacker must supply a crafted local file to a process that invokes the PLY importer; successful corruption executes code in that process.
Summary
What happened
Heap-based buffer overflow in Assimp before 5.4.2 allows local users to execute arbitrary code by importing a crafted PLY file. PLYImporter::LoadFace reuses an allocated mFaces array without verifying that a later face element's NumOccur value fits, so face loading writes past the heap allocation. The attacker must supply a crafted local file to a process that invokes the PLY importer; successful corruption executes code in that process.
The record
- CVE
- CVE-2024-40724
- Published
- Jul 19, 2024
- Updated
- Mar 25, 2025
- Vendor
- Open Asset Import Library
- Product
- Assimp
- Classifications
- CWE-120, CWE-122, CWE-787, T1203
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 19, 2024CVE publishedPublication date reported by the CVE source.
- Mar 25, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <5.4.2
- Affected versionversion=prior to 5.4.2
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo