Habr•August 28, 2026•🇷🇺Translated from Russian

Telegram Desktop Bug Deletes 800 GB of User Data Due to Spelling Checker Path Error

A Windows user reported losing nearly 800 GB of data after updating Telegram Desktop. Files began disappearing from the custom directory C:\custom immediately after launching the messenger, while folders themselves remained intact.

Tracing the culprit

By monitoring application launches, the user isolated the issue to Telegram Desktop. Reinstalling the application to a separate location and creating test files confirmed that Telegram continued to target the original folder. Testing across versions showed the problem appeared after updating from 6.9.4 to 7.1.1.

Process Monitor investigation

Running Process Monitor revealed that Telegram.exe opened C:\custom, enumerated its contents, requested delete permissions, and attempted recursive removal. Stack traces pointed directly inside the Telegram binary, ruling out malware.

Root cause in spell checking

The deletion originated from the lib_spellcheck library. Telegram stores user-added words in a file named custom. In version 7.1.0, changes to support Windows native spell checking introduced a logic error: the path to the internal dictionary was set after an early return when the system spell checker was active.

With an empty working directory path, the code constructed the string /custom. Qt resolved this to C:\custom on the root of the current drive. The subsequent check if (QFileInfo(path).isDir()) { QDir(path).removeRecursively(); } then deleted the entire folder instead of a small internal dictionary directory.

Fix and impact

Developers corrected the issue in commit 9c316281 by setting the path before the return and added an empty-path guard in lib_spellcheck. The faulty versions remained available for roughly 66 hours. The bug was confirmed only on Windows with native spell checking enabled.

The case demonstrates how individually reasonable decisions—storing custom words, cleaning damaged directories, and using recursive deletion—combined into severe data loss when path validation was absent.

Related articles

Habr•Vulnerabilities & Exploits

October 'In Trend VM' Report: Exploited Windows ALPC and Check Point VPN Vulnerabilities

Positive Technologies has released its October edition of the 'In Trend VM' digest, highlighting two actively exploited vulnerabilities. The first is CVE-2026-85880, a local privilege escalation flaw in the Windows ALPC mechanism that was used as a zero-day in targeted attacks by multiple APT clusters. The second is CVE-2026-85102, a critical remote code execution vulnerability in Check Point Security Gateway and Spark Firewall products that affects VPN negotiation. Both issues have been added to CISA's KEV catalog, with public proof-of-concept code already available for the Check Point flaw. The report details attack chains, affected versions, and recommended patches or workarounds.

Security NEXT•Vulnerabilities & Exploits

Windows PHP Updated to Patch Critical Brotli Vulnerability CVE-2026-111497

The PHP development team has released updated Windows builds of PHP that bundle a patched version of the Brotli compression library. The update addresses CVE-2026-111497, a critical out-of-bounds write flaw in Google's Brotli decoder that can lead to remote code execution, information disclosure, or denial of service. The vulnerability carries a CVSS v4.0 base score of 9.2 and is rated Critical. It affects PHP environments where the cURL extension has automatic decompression of HTTP responses enabled, allowing Brotli decoding to occur. Although cURL automatic decompression is disabled by default, applications or HTTP client libraries may enable it. The fix updates the bundled Brotli component to version 1.2.1 in the releases PHP 8.5.12-1, 8.4.27-1, 8.3.36-1, and 8.2.35-1 published on October 26.

BoletimSec•Vulnerabilities & Exploits

AI-Driven Software Boom Fuels Record Surge in Critical Vulnerabilities in 2026

The National Vulnerability Database recorded more than 72,000 CVEs between January and September 2026, compared with 48,244 for the entire previous year. The increase stems directly from the massive growth in code volume produced with AI coding assistants that allow features once requiring two weeks to be completed in a single afternoon. Much of this newly generated code reaches production without thorough human security review because models optimize for functionality rather than adversarial misuse. Common flaws such as missing authorization checks, exposed API keys in repositories, and insecure direct object references appear repeatedly in freshly deployed applications. Criminal groups have adopted the same AI tools to scan and test targets at scale, widening the gap between attacker speed and defender verification processes. Organizations that skip structured adversarial testing leave these issues to be discovered by threat actors, resulting in data exposure and operational disruption far costlier than pre-release remediation.

Security NEXT•Vulnerabilities & Exploits

Apple Releases iOS 27.2 and iPadOS 27.2, Patching 163 Vulnerabilities Including Exploited Flaws in Older Versions

Apple has issued security updates for iOS and iPadOS, addressing a wide range of vulnerabilities across current and legacy operating systems. The iOS 27.2 and iPadOS 27.2 releases fix 163 CVEs affecting WebKit, the kernel, and image processing components. Older branches received targeted patches, with iOS 26.7.2 resolving 134 issues and iOS 18.7.11 addressing three vulnerabilities that include an actively exploited flaw. Specific fixes cover remote code execution risks in WebKit and ImageIO, plus sandbox bypasses. The updates were published on October 26, 2026, and apply to both iPhone and iPad devices. Apple also published detailed security content advisories for each branch.