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-90798 Overview
CVE-2026-90798 is a denial-of-service vulnerability in the replicator component of Apache CouchDB versions 3.5.2 and earlier. The flaw stems from a missing circuit-breaker that allows an attacker who owns a replication source or target to trigger an infinite HTTP redirect loop. The looping condition exhausts replicator resources and degrades availability of the CouchDB service. The weakness is tracked under CWE-834: Excessive Iteration. Apache has released version 3.5.3 to remediate the issue.
Critical Impact
An authenticated owner of a replication endpoint can cause sustained resource exhaustion in the CouchDB replicator by forcing an unterminated HTTP redirect loop.
Affected Products
- Apache CouchDB 3.5.2
- Apache CouchDB 3.x releases prior to 3.5.3
- All platforms running the affected CouchDB versions
Discovery Timeline
- 2026-10-20 - CVE-2026-90798 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-90798
Vulnerability Analysis
The Apache CouchDB replicator synchronizes documents between a source and target database over HTTP. During replication, the client follows HTTP redirect responses returned by either endpoint. The replicator in versions 3.5.2 and below does not enforce an upper bound on the number of consecutive redirects it will follow. An actor controlling a replication endpoint can respond to each request with another 3xx redirect, pointing back to a location that again returns a redirect.
The absence of a circuit-breaker causes the replicator to iterate indefinitely, consuming CPU, memory, and network sockets. Because the replicator process is shared across replication jobs, the resulting degradation affects other tenants of the CouchDB instance, not only the attacker's own replication task.
Root Cause
The root cause is an uncontrolled iteration flaw [CWE-834] in the replicator's HTTP client. The code lacks a maximum-redirect counter and a termination guard, so a cyclic redirect chain is never broken. See the Apache Mailing List Thread and the Apache Mailing List Discussion for maintainer analysis.
Attack Vector
Exploitation requires network access to the CouchDB instance and ownership of a replication source or target. The attacker configures the controlled endpoint to return HTTP 301, 302, 307, or 308 responses that reference a location producing another redirect. When CouchDB initiates or resumes the replication, the replicator enters the infinite loop. No code execution or data exposure occurs; impact is limited to availability. Additional analysis is available in the Openwall OSS Security Update.
No verified proof-of-concept code is published. The exploitation pattern can be described as a malicious HTTP endpoint that unconditionally returns a redirect header to a URL that redirects back to itself or to another attacker-controlled URL, producing a cycle the replicator does not detect.
Detection Methods for CVE-2026-90798
Indicators of Compromise
- Replicator processes exhibiting sustained high CPU or socket usage without producing document throughput.
- Repeated outbound HTTP requests from CouchDB nodes to the same host returning 3xx status codes in short intervals.
- Replication job logs showing continuous redirect entries without completed or error termination states.
Detection Strategies
- Parse CouchDB logs for replicator entries that contain long sequences of redirect-follow events against a single source or target.
- Instrument the HTTP egress layer to count 3xx responses per replication job and alert when counts exceed a reasonable threshold (for example, 10).
- Correlate replication job identifiers with network flow data to identify loops confined to attacker-controlled hosts.
Monitoring Recommendations
- Monitor the _scheduler/jobs and _scheduler/docs endpoints for jobs stuck in the running state with no progress.
- Track per-process CPU and file-descriptor usage of the couch_replicator subsystem and alert on sustained anomalies.
- Forward CouchDB logs to a centralized analytics platform to baseline normal replication behavior and surface deviations.
How to Mitigate CVE-2026-90798
Immediate Actions Required
- Upgrade Apache CouchDB to version 3.5.3, which adds the missing circuit-breaker in the replicator.
- Audit existing replication jobs and remove any that reference untrusted or unverified source or target URLs.
- Restrict which users and roles can create replication documents, limiting the attack surface to trusted operators.
Patch Information
The Apache CouchDB project fixed this issue in version 3.5.3. Operators should plan an upgrade from any 3.5.2 or earlier release. Refer to the Apache Mailing List Thread for release notes and the Openwall OSS Security Update for coordinated disclosure details.
Workarounds
- Place CouchDB replicator egress behind an HTTP proxy that enforces a maximum redirect depth and terminates loops.
- Restrict the _replicator database write access to a minimal set of administrative accounts.
- Use network egress filtering to permit replication only to allowlisted endpoints under organizational control.
# Verify installed CouchDB version and upgrade target
curl -s http://127.0.0.1:5984/ | jq '.version'
# Expected after remediation: "3.5.3" or later
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

