Habr•November 13, 2026•🇷🇺Translated from Russian

Telegram Patches RCE Vulnerabilities in HTML Widgets After Researcher Demonstrates Calculator Exploit

Telegram rolled out HTML widgets for bots on 9 November, enabling interactive JavaScript content directly inside chat messages. The feature runs JavaScript through the QuickJS engine inside a sandbox that originally lacked network access and keyboard input.

Researcher Demonstration Triggers Rapid Response

Security researcher V12 published a proof-of-concept showing that a widget could launch the system calculator on Android, proving that sandbox restrictions could be bypassed. The demonstration highlighted memory-safety issues that allowed code execution outside the intended environment.

Pavel Durov posted that “the problem does not exist” because an attacker would first need the victim to start a third-party bot. He invited researchers to attempt compromising his account at t.me/monk. Despite the statement, Telegram quickly shipped server-side mitigations and multiple client patches.

Timeline of Fixes and Discoveries

  • 5 November – Telegram Desktop 7.4.0 adds initial HTML widget support.
  • 6 November – Widget engine v0.6.1 ships seven fixes, including one explicitly labeled “the reported RCE”.
  • 9 November – Widgets become available to all bots via Bot API 10.4; an audit of QuickJS-ng reports 27 findings.
  • 10 November – Engine v0.6.4 addresses five additional memory errors and a second code-execution issue found on Android 13.2.1.
  • 11 November – V12 publishes the calculator video; Desktop 7.4.2 is released.
  • 13 November – Desktop 7.4.3 finally includes the critical await-using patch.

Technical Root Causes

The first vulnerability involved a regular-expression replace operation that could trigger recompilation of the same regex while the engine still held references to freed bytecode, resulting in a classic use-after-free condition. The second flaw stemmed from an await using declaration placed inside a non-async function; the engine accepted the code, the function returned, yet closures continued accessing the now-reused stack frame, creating a use-after-return situation.

Both issues were found during audits that leveraged AI tools. Andreas Rösing used Claude Fable 5.1, while Connor Shi confirmed another memory bug discovered by Mythos 5.2.

Platform-Specific Hardening

On Android 13.2.2 the widget engine was moved into a dedicated isolated process without access to Telegram files or the network. Additional syscall filtering was introduced in audit mode, and the number of nested graphical effects was capped to prevent stack overflows or excessive memory consumption. Equivalent patches reached Desktop clients in versions 7.4.2 and 7.4.3, although release notes remained generic.

Widgets are currently restricted server-side, causing some bots to stop responding. No code changes are required from bot developers; the vulnerabilities resided in the client-side engine, not in the HTML itself.

Related articles

Security NEXT•Vulnerabilities & Exploits

Acronis Backup Products Vulnerable to Exploitation in Targeted Attacks

Acronis has disclosed a high-severity vulnerability in its backup products designed for web hosting environments. The flaw, tracked as CVE-2026-87887, affects the Linux versions of Acronis Backup plugin for cPanel & WHM and Acronis Backup extension for Plesk. It stems from improper authorization handling that could allow attackers to obtain sensitive information. The issue carries a CVSS v3.0 base score of 7.5 and has already been exploited in targeted attacks. Acronis released security advisory SEC-12645 on December 3, 2026, and urged immediate updates. Patched versions include Acronis Backup plugin for cPanel & WHM 1.9.3.1031 and Acronis Backup extension for Plesk 1.8.12-659. Users of version 1.9.4 are advised to downgrade to the fixed 1.9.3 branch until a permanent fix is available.

AntiMalware•Vulnerabilities & Exploits

Critical Linux Kernel Vulnerability CVE-2026-139281 Enables Stateful Firewall Bypass for Nearly 21 Years

A critical flaw tracked as CVE-2026-139281 has been discovered in the Linux kernel, allowing remote attackers to bypass stateful firewall rules implemented via iptables and nftables. The vulnerability resides in the conntrack subsystem of Netfilter and stems from an integer overflow when processing fragmented IPv6 packets. It received a CVSS 3.1 score of 9.1 from Red Hat and requires no authentication or user interaction for exploitation. The bug was introduced in January 2006 with Linux 2.6.15 and remained present for almost 21 years until patches were released. Researcher Jérémie Jean disclosed technical details on 22 August 2026 after using OpenAI Codex based on GPT-5 during patch development. Fixes are available in multiple kernel versions including 5.10.275 through 7.4-rc1, with Red Hat Enterprise Linux 8 and AlmaLinux already updated. Debian 12 and 13 remain vulnerable as of 3 December, while Ubuntu continues assessment; disabling IPv6 is recommended as a workaround where patches cannot be applied.

BoletimSec•Vulnerabilities & Exploits

Django Releases Patches for Critical Django4Shell Flaw Allowing Code Execution on Servers

The Django project has issued updates addressing seven vulnerabilities, including the high-severity CVE-2026-124827 nicknamed Django4Shell. The flaw resides in the GeoDjango module and permits attackers to control the path, name, and content of files written to the server via manipulated RasterField data. Successful exploitation can lead to code execution by placing a sitecustomize.py file that Python imports on interpreter startup. The issue stems from an incomplete fix for prior CVEs affecting the same module and requires staff-level authentication in default installations. Patches are available in versions 6.1.4, 6.0.11, and 5.2.20, with additional fixes for SQL injection, XSS, and cache poisoning. Workarounds include removing RasterField from automatic forms and restricting raster data submissions.

BoletimSec•Vulnerabilities & Exploits

Three High-Severity Android Flaws Enable Remote Code Execution Without User Interaction

Google has disclosed three vulnerabilities in Android that allow remote code execution without any user action on the device. Two of the flaws affect the MPEG-2 video decoder and the IMS subsystem used by carriers for voice services, while the third requires proximity. All three are rated high severity and were fixed in the Android 17 QPR2 quarterly update with the December 1 patch level. CISA assigned CVSS scores including 9.8 to the MPEG-2 decoder issue. The update reached compatible Pixel devices starting in November and is now rolling out to 23 models from the 6a to the 11 Pro Fold. Google states there are no known active exploits of the disclosed flaws.