Skip to content

CVE-2026-90798: Apache CouchDB Replicator Infinite HTTP Redirect Loop Denial of Service

Density:
C-Level Executive Briefing CVE-2026-90798 MEDIUM SCORE 72/100

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

HERMES THREAT SCORE & REPLICATION PIPELINE INTEGRITY

Target: Apache CouchDB Replication Engine (/src/couch_replicator/)
Confidence: 96%
72 / 100
MEDIUM

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

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

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.

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

CVE-2026-90798: Apache CouchDB Replicator Infinite HTTP Redirect Loop Denial of ServiceVULNERABILITY

Connected Nodes: 0

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.


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.


ProductVulnerable VersionsPatched VersionUpdate Urgency
Apache CouchDB<= 3.5.2 (All Platforms)3.5.3MEDIUM (Recommended)

title: CouchDB Replicator Cyclic Redirection Loop
id: a9079800-c04c-4db0-9798-couchdb00004
status: experimental
description: Detects replication tasks generating continuous 3xx redirects without progression.
logsource:
category: application
service: couchdb
detection:
selection:
event_type: 'replication_retry'
http_status|startswith: '30'
condition: selection | count() by replication_id > 10
level: medium

  1. Apply CouchDB 3.5.3: The patch caps the maximum number of HTTP redirects to 5 hops, immediately terminating rogue tasks.

  2. Restrict Outbound Replication Destinations: Configure network egress firewalls or proxy allowlists to prevent CouchDB nodes from connecting to untrusted external URLs.

  3. Monitor Active Replication Tasks: Periodically poll GET /_active_tasks to detect and cancel stalled replication jobs.