HudHud Tech — Tech & AI news platform
Wednesday, 18 November 2026
Breaking
Cybersecurity

NebuSec Identifies RCE Vulnerabilities in Telegram’s Android Widgets

18 November 2026 4 min read هدهد تك | Hudhud Tech

A malicious widget can bypass the security filter that Telegram added to its Android app last week, enabling remote code execution outside the app, according to NebuSec, a security company.

Widgets are small interactive blocks sent by bots within chat messages, executing JavaScript on the user’s device. Researchers conducted their demonstration on a Telegram test server, as only approved bots can send widgets on the live service.

Last week, bots were allowed to start sending widgets. Two days later, an account named V12 posted a video on X claiming that any Telegram message could now execute remote code.

In response, Telegram implemented QuickJS, a lightweight engine for running widget JavaScript, into its own process on Android. The company also added a seccomp filter, which can block or record system calls made by the process. Both changes are reflected in the source code for Telegram for Android version 13.2.2 (7303).

NebuSec reported in a technical analysis published earlier this week that its researchers managed to execute code outside of the filter in two distinct ways. One method exploits a widget bug not covered by the filter, while the other combines a widget bug that the filter does cover with a kernel bug.

In their video demonstration, a bot’s Telegram widget on Android 13.2.2 (7303) bypasses the filter and opens the phone’s calculator app, according to the researchers. However, their report does not specify what other areas of the app or phone the code could access, nor does it clarify whether user interaction was required to trigger the bot or widget.

The researchers are withholding further details for now. Their report does not mention a CVE identifier and does not indicate whether the vulnerabilities have been reported to Telegram’s developers.

The widget documentation states that widgets operate in a sandbox with restrictions, such as no network access. However, the researchers noted that a single use-after-free or out-of-bounds write bug in QuickJS could allow a script to read and write the process’s memory, thus bypassing the protective rules.

The new filter specifies several system calls, including ptrace, bpf, and mount, while allowing all other calls. The filter’s source code reveals that ioctl is unfiltered, and it operates on top of Android’s own limitations for the engine process.

Additionally, a single process handles all widgets, meaning that a compromised widget from one bot could share memory with widgets from other bots, according to the researchers.

In the published source code for Telegram for Android 13.2.2 (7303), the filter is set to audit mode. In this mode, it blocks attempts to start new programs or processes but only logs the other specified calls while allowing them to execute.

A comment in the code indicates that this audit mode will remain until logs show that the engine no longer makes the blocked calls. It is unclear if the version available to users uses the same setting.

As of now, general bots are not permitted to use widgets, even in private chats, as noted by a contributor to the telegram-bot-api project in a bug report thread on GitHub. No updates in the thread clarify which bots are still allowed or if the restrictions have been lifted.

NebuSec’s report does not specify a fixed version, and the published Android source code remains at version 13.2.2 (7303).

Pavel Durov, Telegram’s CEO, stated in a channel post that no one could be hacked simply by receiving a message. His comments addressed reports of code execution through widgets in the Android and Windows apps, made before the researchers’ demonstration. He added that a user must first initiate a third-party service, which has been fully patched on the server side.

Telegram previously claimed that the issue highlighted in V12’s initial demonstration had been resolved and that the fix had reached all users.

Separately, Kaspersky reported that it detected suspected exploitation of a flaw in Telegram widgets when users visited certain Telegram channels. This activity involved a PowerShell script running unnoticed, which downloaded and executed WebRAT, also known as Salat Stealer. This malware allows attackers to control the infected system and steal data from crypto wallets and Telegram accounts.

Kaspersky’s malware warning did not specify the flaw or Telegram version involved, nor did it report the number of victims or connect the activity to either demonstration. The company advises against running widgets until a fix is implemented.

 

Source: The Hacker News

What do you think of this story?

Share this story: