CVE-2021-31322
CVE-2021-31322 is a medium-severity vulnerability in Telegram with a CVSS 3.x base score of 5.5. 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: Medium (CVSS 3.x base score 5.5)
- CVSS v2: 4.3
- EPSS exploit prediction: 1% (70th 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 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.
Frequently asked questions
- What is CVE-2021-31322?
- 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.
- How severe is CVE-2021-31322?
- CVE-2021-31322 has a CVSS 3.x base score of 5.5, rated medium severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2021-31322 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (70th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-31322?
- CVE-2021-31322 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-31322?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-31322 published?
- CVE-2021-31322 was published on 2021-05-18 and last updated on 2026-06-17.
References
- https://www.shielder.it/advisories/telegram-rlottie-lotgradient-populate-heap-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-31321 — High (CVSS 7.1): Telegram Android <7.1.0 (2090), Telegram iOS <7.1, and Telegram macOS <7.1 are affected by a Stack Based Overflow in…
- 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…
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…