Developing storyHigh severity

Kaspersky warns Telegram widgets flaw may be delivering WebRAT malware

Days after Telegram launched widgets, researchers showed code execution and Kaspersky said it suspects the feature was used to install WebRAT, which Telegram's CEO disputes.

By Mr Elite Published 8 min read

Severity
High
Status
Still developing
Sources
1
Last checked

The short version

  • Kaspersky said on November 13 that a flaw in Telegram widgets may have been exploited to deliver WebRAT, also known as Salat Stealer.
  • Researchers at V12 showed code execution on Android and later claimed a second exploit against the Windows client.
  • Telegram said the Android issue was fixed; Pavel Durov said no one could be hacked just by receiving a message.
  • Kaspersky has not published technical details or said how many users were targeted, and advises not launching widgets until a fix is released.

What happened

Kaspersky warned on November 13 that a vulnerability in Telegram's newly launched widgets may have been exploited in the wild to install the WebRAT malware, SecurityWeek reported on November 16. The security firm made the claim in a post on its Russian-language Telegram channel.

The sequence began on November 10, when Telegram CEO Pavel Durov promoted widgets on X, saying any message on the platform can now become an app. A day later, researchers at V12 posted a video on X claiming that any Telegram message could now become a route to remote code execution, meaning an attacker running their own commands on a device. The video showed an interaction with a bot making the Calculator app open on an Android phone.

Telegram replied the same day. It said the Android issue "was fixed yesterday, and the fix was deployed to all users earlier today," according to SecurityWeek. V12 then published a second video, saying it had another exploit that worked against the supposedly patched Telegram client for Windows.

Kaspersky said it had seen malicious activity that it suspects is linked to the flaw. According to the company, exploitation happened when users visited certain Telegram channels, and the result was a PowerShell script running without the user's knowledge. PowerShell is a Windows command-line tool often abused to download and run further malware. The script fetches and launches WebRAT.

SecurityWeek described WebRAT as a Rust-based trojan that gives attackers control of an infected system and can steal cryptocurrency wallet and Telegram account data. Kaspersky did not share technical details of the exploitation or say how many users were targeted. Its main recommendation was "do not launch widgets in Telegram until a fix is released."

Durov rejected the reports on X on November 13. He wrote that "No one could be hacked just by receiving a message." In his account, an attack needed the user to start a third-party service first, and that scenario has since been fully patched on the server side. He also challenged sceptics to hack his own account. SecurityWeek said it had asked Telegram for comment.

Why it happened

The cause has not been confirmed by Telegram or by Kaspersky. Kaspersky has said only that it suspects a widgets flaw is behind the WebRAT activity it observed, and it has not published how the exploitation works.

The V12 researchers offered their own view of the weakness. They said that running QuickJS, a lightweight JavaScript engine, inside messages without a sandbox creates a large attack surface. A sandbox is a restricted environment that stops code from touching the rest of the device.

Telegram and Durov describe a narrower problem. Durov said an attack needed the user to start a third-party service first, and that this has been patched on the server side. It is not clear from the reporting whether the Windows exploit V12 claimed, or the activity Kaspersky saw, falls inside that description.

How this kind of failure works

Widgets turn a chat message into a small interactive program. That means the app has to run code supplied by someone else, usually JavaScript, on the user's own device. Every feature of that kind has the same central question: how much can that code do?

The usual answer is a sandbox. Think of a hotel guest who is given a room key that opens only their own room. If the key also opened the staff corridor, one dishonest guest could reach everything. A sandbox is meant to keep the key limited, and a flaw in it lets code step outside its room.

When code escapes, the result is remote code execution. From there an attacker can run commands such as a PowerShell download, which is the step Kaspersky describes. The weak point is often not the JavaScript engine itself but the bridge between the engine and the app, where the app hands the widget some ability, such as opening a link or launching a file.

Fixes can also land in two places. Server-side changes take effect for everyone at once, while client fixes need each app version to be updated. That is why a vendor can truthfully say one scenario is patched while researchers show a different path against a particular client.

Who is affected

Kaspersky's warning concerns Telegram users who launch widgets, and the malware stage it described is a PowerShell script, which points to Windows machines. V12 said its second exploit worked against the Telegram client for Windows. The reporting does not list affected versions or give a patched build number for any platform.

There is no published indicator that lets an ordinary user confirm infection. Kaspersky said exploitation happened when users visited certain channels, but it has not named them. Signs to look for are generic: unexpected PowerShell activity, unfamiliar processes, security software alerts, or unexplained logins to Telegram and cryptocurrency accounts.

The stakes are practical. SecurityWeek reported that WebRAT can steal cryptocurrency wallet and Telegram account data and give attackers control of the system. Someone who holds crypto on the affected computer, or uses Telegram for work, has the most to lose.

How to defend against it

Tick each step as you check it. Your progress is saved on this device.

What to learn from this

The concept: Sandboxing and attack surface

Attack surface is the sum of the places where outside input can influence your software. A messaging app that only displays text has a small one. Once messages can carry running code, the surface grows to include the JavaScript engine and every permission handed to it.

A sandbox limits the damage when that surface is attacked. It works only if the boundary is strict and the permissions given to the code are minimal. V12's criticism is that widgets ran in QuickJS without that kind of boundary, a claim Telegram has not been reported as accepting.

The same pattern appears in browser extensions, PDF readers with embedded scripts, office macros and AI agents that run tools on a user's behalf. In each case the question is the same: what can untrusted content make this program do?

Any feature that runs content from other people needs a tight sandbox, and the fewer permissions it holds, the less an escape is worth.

Quick check

Sign in to earn 10 XP for a right answer

Why does running widget code inside a chat app without a sandbox raise the risk of remote code execution?

Timeline

  1. November 10 Pavel Durov promotes the widgets feature on X, saying any message can now become an app.
  2. November 11 V12 posts a video claiming remote code execution on Android; Telegram says the issue was fixed and the fix deployed to all users.
  3. After the Android fix, date not given V12 publishes a second video claiming an exploit against the Telegram client for Windows.
  4. November 13 Kaspersky posts that a widgets flaw may have been exploited to deliver WebRAT and advises against launching widgets.
  5. November 13 Durov writes on X that no one could be hacked just by receiving a message and says the scenario was patched server-side.
  6. November 16 SecurityWeek reports the dispute and says it has asked Telegram for comment.

What is not known yet

  • Whether the activity Kaspersky observed uses the same flaw V12 demonstrated.
  • How many users were targeted, and in which countries.
  • How the exploitation works, since Kaspersky has not published technical details.
  • Whether the Windows exploit V12 claimed has been fixed, and in which client version.
  • Telegram's response to SecurityWeek's request for comment.

Questions people ask

Can Telegram widgets install malware?

Kaspersky said it suspects a widgets flaw was exploited in the wild to run a PowerShell script that fetches WebRAT. It has not published technical details. Telegram's CEO disputes that a message alone can compromise a user.

What is WebRAT?

SecurityWeek describes WebRAT, also known as Salat Stealer, as a Rust-based trojan. It gives attackers control of the infected system and can steal cryptocurrency wallet and Telegram account data.

Has Telegram fixed the problem?

Telegram said an Android issue was fixed and deployed to all users on November 11. Durov said the scenario he described was patched on the server side. V12 claims a Windows exploit worked against the patched client, and that has not been resolved publicly.

Should I stop using Telegram?

Kaspersky's advice is narrower: do not launch widgets until a fix is released. Keep the app updated, avoid unknown bots and channels, and secure your account with two-step verification.

Sources

  • SecurityWeek: Telegram Widgets Hit by RCE Demos, Malware Warning Days After Launch

Know someone who should see this?

Keep reading