SecurityContext

CVE-2021-31320: Telegram - Buffer Overflow

  • Cve: CVE-2021-31320
  • Name: Telegram - Buffer Overflow
  • 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.
  • Impact: Remote attackers can overwrite heap memory out-of-bounds, potentially leading to arbitrary code execution or application crash.
  • Remediation: Update to the latest version of Telegram with fixed rlottie library or apply available patches.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: user_interaction
  • Requirements: Victim needs to open or process malicious animated sticker
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
  • Epss score: 0.01218
  • Epss percentile: 0.69384
  • Assignee: [email protected]
  • Published at: 2021-05-18T20:15:07Z
  • Age in days: 2016
  • Modified at: 2026-06-17T03:51:33Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-31320
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-787Out-of-bounds Write

Public exploits

UrlSourceAdded date
https://www.shielder.it/advisories/telegram-rlottie-vgradientcache-generategradientcolortable-heap-buffer-overflow/nvd2021-05-18
https://www.shielder.it/blog/2021/02/hunting-for-bugs-in-telegrams-animated-stickers-remote-attack-surface/nvd2021-05-18

References

UrlSourceTags
https://www.shielder.it/advisories/telegram-rlottie-vgradientcache-generategradientcolortable-heap-buffer-overflow/nvdExploit, Third Party Advisory
https://www.shielder.it/blog/2021/02/hunting-for-bugs-in-telegrams-animated-stickers-remote-attack-surface/nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
telegram:telegram< 7.1.0nonvd/v1/products/telegram/telegram

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2021-05-18
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts