CVE-2026-90798: Apache CouchDB Replicator Infinite HTTP Redirect Loop Denial of Service
A denial of service vulnerability (CVE-2026-90798) has been identified in Apache CouchDB versions 3.5.2 and earlier. The internal HTTP client in the couch_replicator engine followed HTTP 3xx redirection responses indefinitely without a hop limit or circuit breaker. An authenticated user configuring a continuous or scheduled replication task pointed at an endpoint with cyclic redirects causes replication worker pools to loop endlessly, exhausting socket handles and process memory. Apache CouchDB 3.5.3 addresses this defect by enforcing a strict redirection hop ceiling. Hermes rates this issue at HTS 72 (MEDIUM).
HERMES THREAT SCORE & REPLICATION PIPELINE INTEGRITY
Target:Apache CouchDB Replication Engine (/src/couch_replicator/) CVSS v3.1 rates this vulnerability at 6.5 Medium due to requiring credentials to initiate replication tasks. Hermes Threat Score evaluates it at 72 (MEDIUM). While unauthenticated exploitation is impossible, multi-tenant databases allowing developers or data integrators to set up custom sync jobs can be completely disrupted by a single cyclic redirect.
CVE-2026-90798: Apache CouchDB Replicator Infinite HTTP Redirect Loop Denial of ServiceVULNERABILITY
1. Executive Summary & Overview
Section titled โ1. Executive Summary & OverviewโApache CouchDB provides master-master replication, enabling distributed peer synchronization across geographic clusters. Replication tasks are managed by couch_replicator, which schedules background workers to stream changes between source and target databases over HTTP.
In versions prior to 3.5.3, the HTTP client used by couch_replicator followed HTTP redirect status codes (301, 302, 307, 308) without enforcing a maximum redirect limit. Consequently, cyclic or ping-pong redirects trap worker processes in an infinite loop.
2. Technical Mechanics (CWE-835)
Section titled โ2. Technical Mechanics (CWE-835)โWhen a replication task is initialized, couch_replicator_httpc.erl initiates an HTTP handshake against the endpoint URL. Upon encountering a 3xx redirect, the client extracted the Location header and re-invoked the request function recursively:
[couch_replicator_worker] โโโบ GET http://rogue-target.com/db โโโ HTTP 301 Location: http://rogue-target.com/db-alt[couch_replicator_worker] โโโบ GET http://rogue-target.com/db-alt โโโ HTTP 302 Location: http://rogue-target.com/db ... (Infinite recursive loop, socket leak & CPU burn)Without a circuit breaker, each cyclic replication task permanently locks an Erlang process and its corresponding TCP socket, degrading cluster synchronization capacity.
3. Affected Versions & Remediation Matrix
Section titled โ3. Affected Versions & Remediation Matrixโ| Product | Vulnerable Versions | Patched Version | Update Urgency |
|---|---|---|---|
| Apache CouchDB | <= 3.5.2 (All Platforms) | 3.5.3 | MEDIUM (Recommended) |
4. Detection Engineering & Threat Hunting
Section titled โ4. Detection Engineering & Threat Huntingโtitle: CouchDB Replicator Cyclic Redirection Loopid: a9079800-c04c-4db0-9798-couchdb00004status: experimentaldescription: Detects replication tasks generating continuous 3xx redirects without progression.logsource: category: application service: couchdbdetection: selection: event_type: 'replication_retry' http_status|startswith: '30' condition: selection | count() by replication_id > 10level: medium5. Remediation & Hardening Roadmap
Section titled โ5. Remediation & Hardening Roadmapโ-
Apply CouchDB 3.5.3: The patch caps the maximum number of HTTP redirects to 5 hops, immediately terminating rogue tasks.
-
Restrict Outbound Replication Destinations: Configure network egress firewalls or proxy allowlists to prevent CouchDB nodes from connecting to untrusted external URLs.
-
Monitor Active Replication Tasks: Periodically poll
GET /_active_tasksto detect and cancel stalled replication jobs.