CVE-2021-31322: Telegram - Buffer Overflow
- Cve: CVE-2021-31322
- 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 LOTGradient::populate function of their custom fork of the rlottie library. A remote attacker might be able to access heap memory out-of-bounds on a victim device via a malicious animated sticker.
- Impact: Attackers can access out-of-bounds heap memory, potentially leading to information disclosure or arbitrary code execution.
- Remediation: Update to Telegram 7.1 or later versions.
- Vulnerability type: buffer_overflow
- Vulnerability impact: information_disclosure, remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs to send malicious animated stickers
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- Epss score: 0.01425
- Epss percentile: 0.73619
- 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-31322
- 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
| Id | Name |
|---|---|
| CWE-787 | Out-of-bounds Write |
Public exploits
References
| Url | Source | Tags |
|---|---|---|
| https://www.shielder.it/advisories/telegram-rlottie-lotgradient-populate-heap-buffer-overflow/ | nvd | Exploit, Third Party Advisory |
| https://www.shielder.it/blog/2021/02/hunting-for-bugs-in-telegrams-animated-stickers-remote-attack-surface/ | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| telegram:telegram | < 7.1.0 | no | nvd | /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