# CVE-2021-31320: 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::ge…

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.22%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-05-18T19:44:14.000Z
- Modified: 2026-06-17T03:51:33.147Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- telegram telegram: before 7.1.0

## Every score

- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:P`

## References

- <https://www.shielder.it/blog/2021/02/hunting-for-bugs-in-telegrams-animated-stickers-remote-attack-surface/> (exploit, third-party-advisory)
- <https://www.shielder.it/advisories/telegram-rlottie-vgradientcache-generategradientcolortable-heap-buffer-overflow/> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-31320](https://www.cve.org/CVERecord?id=CVE-2021-31320), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-31320](https://nvd.nist.gov/vuln/detail/CVE-2021-31320), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31320 · Whole record: https://cve.day/CVE-2021-31320.json · Rebuilt by cve.day 2026-11-25T22:58:01.454Z
