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-90799 Overview
CVE-2026-90799 is an unsafe binary deserialisation vulnerability in the chttpd component of Apache CouchDB. The flaw affects Apache CouchDB version 3.5.2 and earlier on all supported platforms. An authenticated user can trigger memory exhaustion by submitting crafted binary payloads to the HTTP interface, leading to a denial of service against the database node. The issue is tracked under CWE-502: Deserialization of Untrusted Data. The Apache CouchDB project recommends upgrading to version 3.5.3, which addresses the issue.
Critical Impact
An authenticated attacker can exhaust node memory through unsafe binary deserialisation in chttpd, causing denial of service on Apache CouchDB 3.5.2 and earlier.
Affected Products
- Apache CouchDB 3.5.2
- Apache CouchDB versions prior to 3.5.2 in the 3.x branch
- All platforms supported by Apache CouchDB 3.x
Discovery Timeline
- 2026-10-20 - CVE-2026-90799 published to the National Vulnerability Database
- 2026-10-20 - Advisory distributed via Openwall OSS Security Notice
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-90799
Vulnerability Analysis
The vulnerability resides in chttpd, the clustered HTTP interface that fronts Apache CouchDB. chttpd accepts binary payloads and deserialises them without enforcing bounds on the resulting in-memory structures. An authenticated user can submit malformed or oversized binary input that forces the Erlang runtime to allocate excessive memory. Because deserialisation runs before application-level validation, the allocation occurs regardless of whether the request would ultimately be accepted. Sustained submission of such payloads exhausts available memory on the node and halts request processing. The attack requires valid credentials but no elevated privileges beyond standard database user access.
Root Cause
The root cause is improper handling of untrusted binary data during deserialisation, classified as CWE-502. The chttpd deserialiser does not validate the declared size or structure of incoming binary terms before allocating memory. This allows attacker-controlled input to drive unbounded allocation.
Attack Vector
Exploitation requires network reachability to the CouchDB HTTP interface and valid authentication credentials. The attacker sends crafted binary payloads to an endpoint handled by chttpd. Repeated requests cause the Erlang virtual machine to consume all available memory, triggering node unresponsiveness or process termination. The vulnerability does not expose data confidentiality or integrity, and the attack is limited to availability impact. Refer to the Apache Thread Discussion and the Apache Thread Update for coordination details.
No verified public exploit code is available at the time of writing. The vulnerability mechanism is described in prose rather than demonstrated here.
Detection Methods for CVE-2026-90799
Indicators of Compromise
- Rapid memory growth of the beam.smp Erlang runtime process hosting CouchDB without a corresponding increase in legitimate workload.
- Repeated large binary POST or PUT requests from a single authenticated principal to chttpd endpoints.
- CouchDB node crashes, out-of-memory kills by the operating system, or supervisor restarts of the couchdb service.
Detection Strategies
- Monitor Apache CouchDB logs for authenticated requests that produce deserialisation errors or precede abrupt memory spikes.
- Correlate reverse proxy access logs with node resource metrics to identify users submitting abnormally large binary payloads.
- Alert on repeated service restarts of CouchDB processes within short time windows.
Monitoring Recommendations
- Collect host-level memory and process metrics for CouchDB nodes and set thresholds that fire before OOM termination.
- Ingest CouchDB and reverse proxy logs into a centralized analytics platform to baseline per-user request volume and payload size.
- Review authentication logs for new or infrequently used accounts generating unusual request patterns against chttpd.
How to Mitigate CVE-2026-90799
Immediate Actions Required
- Upgrade Apache CouchDB to version 3.5.3 on all nodes in the cluster.
- Audit CouchDB user accounts and remove or rotate credentials that are unused or shared.
- Restrict network access to the CouchDB HTTP interface to trusted application subnets and administrative hosts only.
Patch Information
Apache CouchDB 3.5.3 fixes the unsafe binary deserialisation in chttpd. Upgrade all nodes in the cluster to the patched version following the standard rolling upgrade procedure documented by the project. Confirm the running version with the / root endpoint after upgrade. See the Openwall OSS Security Notice for the full advisory.
Workarounds
- Place a reverse proxy in front of CouchDB that enforces strict maximum request body size limits on all endpoints.
- Apply per-user rate limiting on the HTTP interface to reduce the volume of binary payloads any single account can submit.
- Isolate CouchDB nodes on a dedicated network segment and require VPN or mutual TLS before HTTP access is granted.
# Example nginx reverse proxy limit for CouchDB
# Enforces a maximum request body size to constrain binary payloads
server {
listen 443 ssl;
server_name couchdb.example.internal;
client_max_body_size 10m;
limit_req_zone $binary_remote_addr zone=couchdb:10m rate=20r/s;
location / {
limit_req zone=couchdb burst=40 nodelay;
proxy_pass http://127.0.0.1:5984;
}
}
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

