# CVE-2021-31320

- 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-31320
- Record: https://cvemate.com/vulnerability/CVE-2021-31320 · JSON: https://cvemate.com/vulnerability/CVE-2021-31320/json

## Description

```text
Telegram Android <7.1.0 (2090), Telegram iOS <7.1, and Telegram macOS <7.1 are affected by a Heap Buffer Overflow in the VGradientCache::generateGradientColorTable function of their custom fork of the rlottie library. A remote attacker might be able to overwrite heap 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.218%, percentile 69.615%, 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

- ubuntu rlottie (Ubuntu): \< 0~git20200305.a717479+dfsg-1ubuntu0.1~esm1
- 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-vgradientcache-generategradientcolortable-heap-buffer-overflow/>
- <https://ubuntu.com/security/CVE-2021-31320>
- <https://www.cve.org/CVERecord?id=CVE-2021-31320>
- <https://ubuntu.com/security/notices/USN-7198-1>

---

Data as of 2026-12-05T05:18:01.864Z. 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
