Researchers Claim Two RCE Exploits That Bypass Telegram’s New Android Defenses
Researchers have identified two remote code execution exploits that can bypass Telegram's new Android defenses, raising concerns about user security.

A security company, NebuSec, claims to have discovered two remote code execution (RCE) exploits that circumvent the security measures recently implemented by Telegram in its Android application. This finding is particularly significant as it suggests that malicious widgets can execute code outside of the app, potentially compromising user devices.
NebuSec reported that a malicious widget can bypass the security filter added to Telegram's Android app last week, allowing it to run unauthorized code. This vulnerability was demonstrated on a Telegram test server, as only approved bots are currently permitted to send widgets on the live platform. The introduction of widget functionality occurred just days before the claims were made, with an account named V12 posting a video on X that suggested any Telegram message could now execute remote code.
In response to the initial claims, Telegram implemented changes to its Android app, including placing QuickJS, the engine responsible for executing widget JavaScript, into its own process. The company also added a seccomp filter, which is designed to block or monitor system calls made by the process. These modifications are reflected in the source code for Telegram for Android version 13.2.2 (7303). Despite these efforts, NebuSec's analysis indicated that the researchers managed to execute code outside the filter's protections in two distinct ways, one exploiting a widget bug that the filter overlooks, and the other combining a widget bug with a kernel vulnerability.
Widgets are small interactive components that bots can send within chat messages, and they run JavaScript on users' devices. Typically, these widgets are designed to operate within a sandboxed environment, which restricts their access to system resources and network capabilities. However, researchers have pointed out that a single vulnerability in QuickJS can allow a script to bypass these sandboxing rules, enabling it to read and write memory outside its intended scope. This could potentially expose sensitive information or allow unauthorized actions on the device.
The impact of these vulnerabilities could affect all users of Telegram's Android application, especially those who interact with bots that utilize widgets. While Telegram has restricted general bots from using widgets in private chats, the exact number of users potentially at risk remains unclear. The researchers have not disclosed the full extent of what the malicious code could access beyond the demonstration of opening the phone's calculator app. Furthermore, it is unknown whether users need to interact with the widget or initiate the bot for the exploit to occur.
The timeline of events began with the introduction of widget functionality in Telegram, followed by the claims made by V12 and the subsequent security modifications by Telegram. The source code for the updated app was released, but the researchers' write-up does not specify a CVE identifier or indicate whether the vulnerabilities were reported to Telegram's developers.
Telegram's CEO, Pavel Durov, addressed the situation in a channel post, asserting that users could not be hacked merely by receiving a message. He clarified that a user would need to start a third-party service, which had already been patched on the server side. Meanwhile, Kaspersky reported detecting suspicious exploitation of a flaw in Telegram widgets, where a PowerShell script executed without user consent, leading to the installation of malware capable of stealing sensitive data.
Currently, it is unclear how Telegram plans to address these vulnerabilities, and the researchers have withheld specific details about the exploits. Organizations using Telegram's services should be cautious and monitor for updates regarding fixes. The lack of a clear timeline for a patch adds to the uncertainty surrounding the security of the platform.
What it meansResearchers have identified vulnerabilities in Telegram's Android app that could allow remote code execution through malicious widgets, which poses a risk to user security.
Ask your IT team this weekWhat measures are we taking to secure our use of Telegram?Are we aware of any bots currently using widgets in our Telegram channels?
DecisionThe IT team will review and restrict the use of Telegram widgets until a security patch is confirmed.