| タイトル | assimp <= 6.0.5 and master Out-of-bounds Write |
|---|
| 説明 | assimp: Collada pipeline: out-of-bounds write in std::__copy_move while materialising imported arrays
Advisory metadata (GitHub Security Advisory form)
field value
Ecosystem Other — assimp is not published to a registry ecosystem that advisories can match
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; service-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
While materialising the imported arrays, a copy is performed into a destination that is shorter than the number of elements declared by the file, so std::__copy_move performs an out-of-bounds write (AddressSanitizer classifies the first invalid access as a write).
==20==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000024 (pc 0x7412c60c49bb bp 0x7ffd06c5ca10 sp 0x7ffd06c5c1d8 T0)
==20==The signal is caused by a WRITE memory access.
Sanitizer stack (first invalid access)
#0 0x7412c60c49bb string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:429
#1 0x644d9d50e621 in __asan_memcpy (/home/dell/data1/czh/projects/2026/fogfuzz/.scratch/newfmt/assimp-asan/bin/assimp+0x2f8621) (BuildId: f0d3b66988c560a1079d5bbdce680400ae33efb9)
#2 0x644d9dbc7198 in float* std::__copy_move<false, true, std::random_access_iterator_tag>::__copy_m<float>(float const*, float const*, float*) /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algobase.h:431:6
#3 0x644d9dbc7198 in float* std::__copy_move_a2<false, float*, float*>(float*, float*, float*) /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algobase.h:494:14
# Fault site - 21-assimp-3-copy-move-oob-write
The AddressSanitizer report names the first invalid access. When that access happens inside a standard-library template (std::copy, std::vector<bool> proxy, operator delete[]), the report's own site field stays empty or points at stl_*.h. This file resolves the responsible project line.
field value
Program / invocation assimp — assimp export <in> <out>
First invalid access (sanitizer) stl_algobase.h:431 (std::__copy_move<...>::__copy_m<float> -> memmove)
Responsible project line code/AssetLib/Collada/ColladaLoader.cpp:1308
Function Assimp::ColladaLoader::CreateAnimation
Released version master + v6.0.5 — 2/2 on v6.0.5
Source at the responsible line
1305 | }
1306 |
1307 | // Apply values to current transformation
> 1308 | std::copy(temp, temp + e.mValueAccessor->mSize, transforms[e.mTransformIndex].f + e.mSubElement);
1309 | }
1310 |
1311 | // Calculate resulting transformation
Why this line is the root cause
e.mValueAccessor->mSize is the component count declared by the file's <accessor>; it is copied to transforms[e.mTransformIndex].f + e.mSubElement without checking that mSubElement + mSize fits the destination row. A crafted Collada animation therefore writes past the row (out-of-bounds write), which is what ASan reports; the std::copy frame is only the innermost template.
How to reproduce
assimp export poc.bin out.dae
Both attached samples crash on every run with the plain build (SIGSEGV/SIGABRT) and with the ASan build.
Suggested fix
Validate the source and destination lengths before copying: size the container from the validated element count, or grow it explicitly (reserve/push_back) instead of copying into a fixed-size buffer.
Impact
Processing an untrusted model performs an out-of-bounds write (heap corruption): denial of service and a plausible exploitation primitive. Note that the crash observed by the fuzzer may appear in a later cleanup/copy step — the sanitizer report above is the first invalid access.
Attachments
seeds/id:000949,sig:11,src:020360,time:72144105,execs:15872469,op:quick,pos:32332 — crashes every run
seeds/id:000950,sig:11,src:020382,time:72619108,execs:15989655,op:quick,pos:32336 — crashes every run
asan/7-copy-move-oob-write-asan.txt — AddressSanitizer report
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-3-copy-move-oob-write |
|---|
| ユーザー | Anonymous User |
|---|
| 送信 | 2026年10月23日 10:48 (1 月 ago) |
|---|
| モデレーション | 2026年11月22日 17:21 (1 month later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 442130 [Open Asset Import Library Assimp 迄 6.0.6 Collada Loader ColladaLoader.cpp CreateAnimation mSize メモリ破損] |
|---|
| ポイント | 20 |
|---|