# CVE-2026-47318: Samsung rlottie stack-based buffer overflow in gray_render_cubic

Source: https://junglewise.ai/threats/cve-2026-47318-samsung-rlottie-stack-based-buffer-overflow-in-gray-render-cubic  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-04. Updated: 2026-06-04  
License: CC BY 4.0 with a link back

CVE-2026-47318 · Severity: medium · CVSS 6.1 · Published 2026-06-04

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.

Technologies: [Samsung Rlottie](https://junglewise.ai/threats/technologies/rlottie). Vendors: [Samsung](https://junglewise.ai/threats/vendors/samsung).

## Quick answers

**Is CVE-2026-47318 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-47318 being exploited in the wild.

**How severe is CVE-2026-47318?** Medium severity, with a CVSS score of 6.1, published 4 June 2026.

**Which products and versions are affected?** Samsung Rlottie before ce72b35a7ad0dded03051d3aa0ef75321c3bd035.

**Is there a fix for CVE-2026-47318?** A patch was published on 2026-05-12: Fix merged into master branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-47318 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-47318?** Check whether you run Samsung Rlottie at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## 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

## References

- [https://github.com/Samsung/rlottie/pull/582](https://github.com/Samsung/rlottie/pull/582)

## Related threats

- [Samsung rlottie heap-based buffer overflow via environment variables](https://junglewise.ai/threats/cve-2026-108978-heap-based-buffer-overflow-vulnerability-in-samsung-opensource)
- [Samsung rLottie stack-based buffer overflow](https://junglewise.ai/threats/cve-2026-91826-samsung-rlottie-stack-based-buffer-overflow)
- [Samsung rLottie out-of-bounds read in stb_image](https://junglewise.ai/threats/cve-2026-49509-samsung-rlottie-out-of-bounds-read-in-stb-image)
- [Samsung rlottie uncontrolled recursion in shape group parsing](https://junglewise.ai/threats/cve-2026-82797-samsung-rlottie-uncontrolled-recursion-in-shape-group-parsing)
- [Samsung rlottie integer overflow to buffer overflow](https://junglewise.ai/threats/cve-2026-19588-samsung-rlottie-integer-overflow-to-buffer-overflow)
