CVE-2021-31321
CVE-2021-31321 is a high-severity vulnerability in Telegram with a CVSS 3.x base score of 7.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-787.
Key facts
- Severity: High (CVSS 3.x base score 7.1)
- CVSS v2: 5.8
- EPSS exploit prediction: 1% (62nd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-787
- Affected product: Telegram
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2021-31321?
- 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.
- How severe is CVE-2021-31321?
- CVE-2021-31321 has a CVSS 3.x base score of 7.1, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is none, integrity high, and availability high.
- Is CVE-2021-31321 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (62nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-31321?
- CVE-2021-31321 primarily affects Telegram. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-31321?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-31321 published?
- CVE-2021-31321 was published on 2021-05-18 and last updated on 2026-06-17.
References
- https://www.shielder.it/advisories/telegram-rlottie-gray_split_cubic-stack-buffer-overflow/
- https://www.shielder.it/blog/2021/02/hunting-for-bugs-in-telegrams-animated-stickers-remote-attack-surface/
Affected products (3)
- cpe:2.3:a:telegram:telegram:*:*:*:*:*:android:*:*
- cpe:2.3:a:telegram:telegram:*:*:*:*:*:iphone_os:*:*
- cpe:2.3:a:telegram:telegram:*:*:*:*:*:macos:*:*
More vulnerabilities in Telegram
- CVE-2019-10044 — High (CVSS 8.8): Telegram Desktop before 1.5.12 on Windows, and the Telegram applications for Android, iOS, and Linux, is vulnerable to…
- CVE-2024-7014 — High (CVSS 8.1): EvilVideo vulnerability allows sending malicious apps disguised as videos in Telegram for Android application affecting…
- CVE-2018-20436 — High (CVSS 8.1): The "secret chat" feature in Telegram 4.9.1 for Android has a "side channel" in which Telegram servers send GET…
- CVE-2021-31320 — High (CVSS 7.1): Telegram Android <7.1.0 (2090), Telegram iOS <7.1, and Telegram macOS <7.1 are affected by a Heap Buffer Overflow in…
- CVE-2018-15543 — Medium (CVSS 6.8): An issue was discovered in the org.telegram.messenger application 4.8.11 for Android. The FingerprintManager class for…
- CVE-2020-12474 — Medium (CVSS 6.5): Telegram Desktop through 2.0.1, Telegram through 6.0.1 for Android, and Telegram through 6.0.1 for iOS allow an IDN…
Other CWE-787 (Out-of-bounds Write) vulnerabilities
- CVE-2026-42369 — Critical (CVSS 10.0): GV-VMS V20 is a Video Monitoring Software used to gather the feeds of many surveillance cameras and manage other…
- CVE-2026-4746 — Critical (CVSS 10.0): Out-of-bounds Write vulnerability in timeplus-io proton (base/poco/Foundation/src modules). This vulnerability is…
- CVE-2025-43300 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved bounds checking. This issue is fixed in iOS 15.8.5 and iPadOS…
- CVE-2025-24201 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved checks to prevent unauthorized actions. This issue is fixed in…
- CVE-2024-42479 — Critical (CVSS 10.0): llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause…
- CVE-2024-39791 — Critical (CVSS 10.0): Stack-based buffer overflow vulnerabilities affecting Vonets industrial wifi bridge relays and wifi bridge…