Skip to main content
Vulnerability Database/CVE-2026-90797

CVE-2026-90797: Apache CouchDB DOS Vulnerability

CVE-2026-90797 is a denial of service vulnerability in Apache CouchDB caused by unlimited gzip decompression that allows remote attackers to exhaust system memory. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-90797 Overview

CVE-2026-90797 is a denial-of-service vulnerability in Apache CouchDB's chttpd HTTP interface. The flaw stems from an unlimited gzip decompression routine that processes client-supplied compressed payloads without enforcing size bounds. Any remote client can submit a small compressed request that expands into an arbitrarily large memory allocation, exhausting server memory and disrupting service availability. The vulnerability affects Apache CouchDB 3.5.2 and earlier on all platforms. The Apache CouchDB project released version 3.5.3 to address the issue. The weakness is classified under CWE-409: Improper Handling of Highly Compressed Data (Data Amplification).

Critical Impact

Unauthenticated remote attackers can trigger memory exhaustion in CouchDB nodes, causing denial of service for all database clients.

Affected Products

  • Apache CouchDB versions 3.5.2 and earlier
  • The chttpd clustered HTTP interface component
  • All supported operating system platforms

Discovery Timeline

  • 2026-10-20 - CVE CVE-2026-90797 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-90797

Vulnerability Analysis

The vulnerability resides in chttpd, the clustered HTTP front-end for Apache CouchDB. The service accepts HTTP requests carrying Content-Encoding: gzip and decompresses the body before further processing. The decompression routine lacks a maximum output size limit and does not stream-validate the expansion ratio. A compact gzip payload crafted with a high compression ratio can inflate to gigabytes of memory in the Erlang BEAM process. Repeated or concurrent requests amplify the impact and can drive the host into out-of-memory conditions.

This is a classic data amplification issue, often called a decompression bomb or zip bomb pattern. Because chttpd is the primary API surface for CouchDB, exhaustion of its worker processes degrades the entire database cluster. Availability is directly impacted, while confidentiality and integrity are not affected.

Root Cause

The root cause is missing input validation on decompressed payload size. The HTTP body handler decompresses gzip-encoded content without checking the uncompressed size against a configurable limit. The code path assumes that compressed inputs expand within reasonable bounds, which is not enforced by the gzip format itself.

Attack Vector

An unauthenticated remote attacker sends an HTTP request to any chttpd endpoint that accepts a request body, such as document write or _bulk_docs operations. The attacker sets Content-Encoding: gzip and attaches a highly compressible payload, for example a stream of repeated bytes compressed to a small size that expands to several gigabytes. The CouchDB node allocates memory to hold the decompressed buffer and is killed by the operating system or exhausts cluster resources. The attack requires only network reachability to the CouchDB HTTP port, typically TCP 5984 or 6984.

No verified public exploit code is available at the time of this writing. Technical details are discussed in the Apache CouchDB mailing list thread and the OpenWall OSS Security notice.

Detection Methods for CVE-2026-90797

Indicators of Compromise

  • HTTP requests to CouchDB endpoints containing the Content-Encoding: gzip header paired with small body sizes that produce unusually large memory allocation events
  • CouchDB process termination events, Erlang BEAM crash dumps, or operating system OOM-killer log entries referencing beam.smp or couchdb
  • Sudden spikes in resident set size (RSS) on CouchDB nodes without a corresponding increase in request throughput

Detection Strategies

  • Inspect reverse proxy or web application firewall logs for requests to /, /_bulk_docs, or document write endpoints with Content-Encoding: gzip and an abnormally low compressed-to-expected ratio
  • Correlate CouchDB request logs with host memory telemetry to identify requests immediately preceding memory pressure or node restarts
  • Alert on repeated 5xx responses or dropped connections from chttpd combined with elevated memory consumption on the same node

Monitoring Recommendations

  • Enable per-request body size and decoded size logging on upstream proxies in front of CouchDB
  • Track CouchDB cluster health metrics for node restarts, failed shard operations, and queue backpressure
  • Monitor system-level OOM events on CouchDB hosts and route alerts to the on-call rotation

How to Mitigate CVE-2026-90797

Immediate Actions Required

  • Upgrade all Apache CouchDB instances to version 3.5.3 or later as soon as change windows allow
  • Restrict network exposure of CouchDB chttpd ports to trusted application tiers and administrative networks only
  • Place a reverse proxy in front of CouchDB that enforces maximum request body size and rejects oversized or suspiciously compressed payloads

Patch Information

Apache CouchDB 3.5.3 fixes this issue by applying a size limit to gzip decompression in chttpd. Operators running 3.5.2 or earlier should upgrade using the official distribution channels. Refer to the Apache CouchDB thread update for release coordination details.

Workarounds

  • Disable acceptance of gzip-encoded request bodies at an upstream proxy or load balancer by stripping or rejecting the Content-Encoding: gzip request header
  • Enforce a strict client_max_body_size or equivalent limit at the proxy to cap compressed request size
  • Require authentication on all CouchDB endpoints and limit source IP ranges via firewall rules to reduce the attacker population
bash
# Example nginx reverse proxy configuration to limit compressed request bodies
# and strip Content-Encoding: gzip before forwarding to CouchDB
server {
    listen 443 ssl;
    server_name couchdb.example.com;

    client_max_body_size 10m;

    location / {
        if ($http_content_encoding = "gzip") {
            return 415;
        }
        proxy_pass http://127.0.0.1:5984;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.