# CVE-2021-31321

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 7.1.0 (CNA); fix release not confirmed
- Status: published
- Published: 2021-05-18 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-31321, DEBIAN-CVE-2021-31321
- Record: https://cvemate.com/vulnerability/CVE-2021-31321 · JSON: https://cvemate.com/vulnerability/CVE-2021-31321/json

## Description

```text
Telegram Android <7.1.0 (2090), Telegram iOS <7.1, and Telegram macOS <7.1 are affected by a Stack Based Overflow in the gray_split_cubic function of their custom fork of the rlottie library. A remote attacker might be able to overwrite Telegram's stack memory out-of-bounds on a victim device via a malicious animated sticker.
```

## Signals

- CVSS: 7.1 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- EPSS: 1.101%, percentile 66.783%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected

- debian rlottie (Debian): \< 0.1+dfsg-2
- ubuntu rlottie (Ubuntu): \< 0~git20200305.a717479+dfsg-1ubuntu0.1~esm1 \| \< 0.1+dfsg-2ubuntu0.1
- telegram telegram: \< 7.1.0

## References

- <https://www.shielder.it/blog/2021/02/hunting-for-bugs-in-telegrams-animated-stickers-remote-attack-surface/>
- <https://www.shielder.it/advisories/telegram-rlottie-gray_split_cubic-stack-buffer-overflow/>
- <https://ubuntu.com/security/CVE-2021-31321>
- <https://www.cve.org/CVERecord?id=CVE-2021-31321>
- <https://ubuntu.com/security/notices/USN-7198-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-31321>

---

Data as of 2026-12-05T05:39:42.889Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
