Description
tor before 0.4.9.9 was prone to an infinite loop when decompressing a truncated zlib/gzip stream with done=1. A truncated stream never reaches Z_STREAM_END, causing zlib to return Z_BUF_ERROR with no input remaining, which buf_add_compress() mistook for a full output buffer and retried forever. Fixed by returning TOR_COMPRESS_ERROR in that case so the caller can abort cleanly. This is TROVE-2026-021.
Published: 2026-08-20
Score: 3.7 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in Tor before version 0.4.9.9 causes an infinite loop when decompressing a truncated zlib/gzip stream set with done=1. The decompression routine misinterprets a Z_BUF_ERROR as a full output buffer and repeatedly retries, never exiting the loop. This non‑terminating process consumes CPU resources, potentially disrupting the Tor instance and the host it runs on. The weakness is classified as CWE‑1284, indicating resource exhaustion.

Affected Systems

The vulnerability affects the Tor project’s Tor software, specifically any deployment running a version earlier than 0.4.9.9. It is not limited to a particular operating system or installation method; any Tor node that performs zlib/gzip decompression of network traffic is susceptible.

Risk and Exploitability

The CVSS score of 3.7 reflects a low to moderate risk; the EPSS score is unavailable, and the vulnerability is not yet listed in the CISA KEV catalog. Attackers can likely trigger the fault remotely by sending malformed compressed data over Tor, which would cause the targeted node to enter an infinite loop. Because the issue arises during normal packet handling, an adversary with network access to a Tor node could cause a denial of service with minimal effort. The lack of a CVE‐specific patch handling mechanism means the only effective mitigation is to update to a fixed release or apply resource controls to limit the impact.

Generated by OpenCVE AI on August 21, 2026 at 01:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Tor to version 0.4.9.9 or later, which contains the fix that returns TOR_COMPRESS_ERROR when a truncated stream is detected.
  • If an update cannot be performed immediately, restart the Tor service upon detection of high CPU usage or prolonged processing of compressed data to regain normal operation.
  • Apply operating‑system or container resource limits, such as cgroups or limiting CPU shares, to prevent a single runaway process from exhausting system resources.

Generated by OpenCVE AI on August 21, 2026 at 01:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 01:30:00 +0000

Type Values Removed Values Added
Title Infinite Loop in Tor Decompression Leads to DoS

Thu, 20 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description tor before 0.4.9.9 was prone to an infinite loop when decompressing a truncated zlib/gzip stream with done=1. A truncated stream never reaches Z_STREAM_END, causing zlib to return Z_BUF_ERROR with no input remaining, which buf_add_compress() mistook for a full output buffer and retried forever. Fixed by returning TOR_COMPRESS_ERROR in that case so the caller can abort cleanly. This is TROVE-2026-021.
First Time appeared Torproject
Torproject tor
Weaknesses CWE-1284
CPEs cpe:2.3:a:torproject:tor:*:*:*:*:*:*:*:*
Vendors & Products Torproject
Torproject tor
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-08-21T20:08:38.526Z

Reserved: 2026-08-20T21:02:36.115Z

Link: CVE-2026-77640

cve-icon Vulnrichment

Updated: 2026-08-21T20:06:31.026Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-20T21:17:11.373

Modified: 2026-09-08T18:26:07.090

Link: CVE-2026-77640

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T01:15:07Z

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input