# CVE-2026-77640: tor before 0.4.9.9 was prone to an infinite loop when decompressing a truncated zlib/gzip stream with done=1.

- Severity: Low 3.7 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-08-20T21:02:36.470Z
- Modified: 2026-10-18T20:10:00.110Z
- Weaknesses: CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- torproject Tor: from 0.2.6.1-alpha before 0.4.9.9; before 0.4.9.9

## Every score

- mitre: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://gitlab.torproject.org/tpo/core/tor/-/raw/tor-0.4.9.9/ChangeLog> (permissions-required, release-notes, vendor-advisory)

## Sources

- CVE List: [CVE-2026-77640](https://www.cve.org/CVERecord?id=CVE-2026-77640), CVE Terms of Use, modified 2026-08-21
- NVD: [CVE-2026-77640](https://nvd.nist.gov/vuln/detail/CVE-2026-77640), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-77640 · Whole record: https://cve.day/CVE-2026-77640.json · Rebuilt by cve.day 2026-11-25T22:59:34.712Z
