Executive brief
Samsung's rlottie is an open-source library used to render vector animations (Lottie files) on various platforms, including mobile devices and smart appliances. A security flaw in how the library processes complex animation curves could allow a specially crafted animation file to crash an application or potentially allow unauthorized code execution. This risk is primarily realized if a user is tricked into opening a malicious animation file.
Technical details
A stack-based buffer overflow exists in the 'gray_render_cubic' function within Samsung's rlottie library. The vulnerability is caused by a lack of bounds checking before calling 'gray_split_cubic'. The function utilizes a fixed-size stack ('bez_stack') of 97 elements; however, certain cubic curve splits can cause the stack pointer to advance beyond this limit, leading to an out-of-bounds write at index 99. An attacker can exploit this by providing a malicious Lottie file with specifically crafted cubic curves. This requires local interaction (user opening a file) and can result in a denial of service or potential arbitrary code execution. The issue is addressed in commit ce72b35a7ad0dded03051d3aa0ef75321c3bd035.
Affected products
- Samsung rlottie before ce72b35a7ad0dded03051d3aa0ef75321c3bd035
Timeline
- 2026-04-10: disclosed: Initial pull request with fix submitted to GitHub
- 2026-05-12: patched: Fix merged into master branch
- 2026-06-04: advisory: NVD publication date