CVE-2021-31318
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-31318 affects Telegram Android <7.1.0 (2090), Telegram iOS <7.1, and Telegram macOS <7.1, involving a Type Confusion vulnerability in the LOTCompLayerItem::LOTCompLayerItem function of their custom fork of the rlottie library. The vulnerability was discovered and reported in 2020, with patches released in September and October 2020 (Ubuntu Security, Shielder Advisory).

Technical details

The vulnerability is a type confusion in LOTCompLayerItem::LOTCompLayerItem where an object of an unverified type is subject to a static_cast, resulting in an out-of-bounds memory access. The issue occurs when a static cast is performed without any type check against objects that do not share the LOTGroupData parent. The vulnerability has a CVSS v3.1 score of 5.5 (Medium) (Ubuntu Security).

Impact

A remote attacker could potentially access heap memory out-of-bounds on a victim's device through a malicious animated sticker. The vulnerability could lead to information disclosure and potential memory corruption (Shielder Advisory).

Mitigation and workarounds

The issue was patched in Telegram Android v7.1.0 (2090), Telegram iOS v7.1, and Telegram macOS v7.1. Telegram implemented additional security measures by verifying that animated stickers in secret chats are part of legitimate sticker sets before processing them. Users should update to these versions or later to mitigate the vulnerability (Shielder Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management