| タイトル | assimp <= 6.0.5 and master Out-of-bounds Write |
|---|
| 説明 | assimp: out-of-bounds write in PretransformVertices (mesh reference-count array)
Advisory metadata (GitHub Security Advisory form)
field value
Ecosystem Other
Package name assimp (repository assimp/assimp)
Affected versions master up to f936bf18 (2026-09-24) — verified there; <= 6.0.5
Patched versions (none)
Severity High (7.0–8.8)
CVSS 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H = 7.0; server-side AV:N/…/UI:N = 8.8
Severity: High — AddressSanitizer classifies the first invalid access as a write (memory corruption), not a plain crash: an attacker-influenced index or length drives a store outside the buffer that owns it.
Summary
The PretransformVertices post-processing step (inserted automatically for exporters that need pre-transformed vertices, e.g. STL/PLY) walks the scene graph and accumulates per-mesh reference counts into a buffer sized from the node tree, then writes through indices derived from the mesh list. Crafted scenes make those indices exceed the buffer, producing an out-of-bounds store:
==1041==ERROR: AddressSanitizer: SEGV on unknown address 0x6022fafb0048 (pc 0x57109e5a2be0 bp 0x7fff897755e0 sp 0x7fff897755a0 T0)
==1041==The signal is caused by a WRITE memory access.
Fault sites (one root cause)
site function
PretransformVertices.cpp:131 CountVerticesAndFaces()
PretransformVertices.cpp:132 CountVerticesAndFaces()
PretransformVertices.cpp:402 BuildMeshRefCountArray()
All three sites write into the same reference-count bookkeeping and are fixed by the same validation, so they are reported together; each site's sanitizer log is attached.
How to reproduce
assimp export poc.bin out.stl # STL/PLY pipelines force the pre-transform step
Both attached samples crash on every run (2/2 each) with the plain build and with the ASan build.
Sanitizer stack
#0 0x57109e5a2be0 in Assimp::PretransformVertices::BuildMeshRefCountArray(aiNode const*, unsigned int*) const /home/dell/data1/czh/projects/2026/fogfuzz/.scratch/newfmt/assimp-git/code/PostProcessing/PretransformVertices.cpp:402:23
#1 0x57109e5a2cba in Assimp::PretransformVertices::BuildMeshRefCountArray(aiNode const*, unsigned int*) const /home/dell/data1/czh/projects/2026/fogfuzz/.scratch/newfmt/assimp-git/code/PostProcessing/PretransformVertices.cpp:406:3
#0 0x59809ce97be0 in Assimp::PretransformVertices::BuildMeshRefCountArray(aiNode const*, unsigned int*) const /home/dell/data1/czh/projects/2026/fogfuzz/.scratch/newfmt/assimp-git/code/PostProcessing/PretransformVertices.cpp:402:23
#1 0x59809ce98c17 in Assimp::PretransformVertices::Execute(aiScene*) /home/dell/data1/czh/projects/2026/fogfuzz/.scratch/newfmt/assimp-git/code/PostProcessing/PretransformVertices.cpp:489:3
Suggested fix
Before the counting/building loops, verify that every mesh index taken from the node tree is inside the reference-count array, and size the array from the validated mesh count rather than from the node count
(reject the scene or skip the mesh when a mismatch is detected).
Impact
Converting an untrusted model to STL/PLY writes out of bounds (heap corruption): denial of service and a plausible exploitation primitive.
Attachments
seeds/id:000437,sig:11,src:001933,time:14370657,execs:2873500,op:havoc,rep:2 — crashes every run
seeds/id:000442,sig:11,src:001933,time:14382442,execs:2876768,op:havoc,rep:5 — crashes every run
asan/assimp-pretransformvertices-131-asan.txt
asan/assimp-pretransformvertices-132-asan.txt
asan/assimp-pretransformvertices-402-asan.txt
Samples are unmodified AFL++ test cases with their original file names.
Plain-build verification (rules out sanitizer-layout artifacts)
The same input was replayed against the plain (non-sanitizer) release build of the same source tree:
condition result
plain build, repeated -11, -11, -11, -11, -11 (SIGSEGV) — consistent every run
MALLOC_CHECK_=3 (glibc heap consistency checks) -11
ASLR disabled (setarch -R) -11
The process dies from a real signal in a normal build, and glibc's heap checks also abort on the corrupted heap, so the report above is not an artifact of AddressSanitizer redzones, allocator layout or instrumentation. |
|---|
| ソース | ⚠️ https://github.com/PassMoon/CVE-application/tree/main/assimp-5-pretransform-oob-write |
|---|
| ユーザー | Anonymous User |
|---|
| 送信 | 2026年10月23日 10:50 (1 月 ago) |
|---|
| モデレーション | 2026年11月22日 17:22 (1 month later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 442132 [Open Asset Import Library Assimp 迄 6.0.5 PretransformVertices.cpp BuildMeshRefCountArray メモリ破損] |
|---|
| ポイント | 20 |
|---|