Intel

AIKIDO-2024-10177

@rive-app/canvas is vulnerable to Heap-based Buffer Overflow

Heap-based Buffer Overflow Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

89

High Risk

This Affects:

JS@rive-app/canvas
2.1.1 - 2.19.2
Fixed in 2.19.3

TL;DR

Affected versions of the @rive-app/canvas library are vulnerable to a heap-based buffer overflow in the DecodeJpeg function of its C++ core. This vulnerability allows a remote attacker to perform an out-of-bounds memory write via a crafted JPEG or PNG file.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@rive-app/canvas is vulnerable to Heap-based Buffer Overflow in versions 2.1.1 - 2.19.2.

How to fix this

Upgrade the @rive-app/canvas library to the patch version.