Skip to content

CVE-2026-90799: Apache CouchDB Erlang Atom-Table Exhaustion Denial of Service

Density:
C-Level Executive Briefing CVE-2026-90799 MEDIUM SCORE 75/100

A denial of service vulnerability (CVE-2026-90799) has been disclosed in Apache CouchDB versions 3.5.2 and earlier. The chttpd component deserialized client-supplied bookmark and sequence tokens (such as /_changes?since= or /_search?bookmark=) using binary_to_term/1 without the safe flag. An authenticated client can transmit tokens containing arbitrary serialized Erlang atom primitives. Because atoms in the BEAM virtual machine are immutable and never garbage-collected, flooding the database with distinct atoms exhausts the global atom table (default 1,048,576 entries), crashing the entire database node. Upgrading to CouchDB 3.5.3 remedies the flaw. Hermes evaluates this vulnerability at HTS 75 (MEDIUM).

HERMES

HERMES THREAT SCORE & ERLANG RUNTIME STABILITY

Target: Apache CouchDB Changes & Search Deserializer (/src/chttpd/)
Confidence: 97%
75 / 100
MEDIUM

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

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

CVSS v4.0 evaluates this issue at 5.3 Medium, while CVSS v3.1 rates it at 6.5 Medium. Hermes Threat Score assigns 75 (MEDIUM). Unlike transient high-memory spikes that recover once requests complete, atom-table exhaustion is mathematically permanent for the lifetime of the OS process, forcing a full crash and manual daemon restart.

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

CVE-2026-90799: Apache CouchDB Erlang Atom-Table Exhaustion Denial of ServiceVULNERABILITY

Connected Nodes: 0

Apache CouchDB relies on the Erlang/OTP BEAM virtual machine. In Erlang, atoms are constant symbolic literals stored in a globally allocated, fixed-capacity table (atom_tab). The BEAM runtime explicitly does not garbage-collect atoms. If this table reaches capacity, the BEAM emulator terminates immediately.

Prior to version 3.5.3, CouchDB decoded sequence tokens and bookmarks passed by clients in continuous changes feeds (_changes) or search endpoints (_search) using the standard binary_to_term/1 BIF. Because the safe option was omitted, arbitrary new atoms defined inside incoming binary terms were dynamically registered into the global atom table.


In chttpd_misc.erl, decoding opaque pagination tokens used:

%% Vulnerable code:
decode_seq(BinarySeq) ->
binary_to_term(base64:decode(BinarySeq)). %% unsafe! Allocates atoms!

An attacker can construct terms using the Erlang External Term Format (Tag 100 or 118 for atoms). By generating a sequence of unique random atom names (atom_1, atom_2, โ€ฆ, atom_1048576), the table is systematically saturated:

[Client] โ”€โ”€โ–บ GET /db/_changes?since=<base64_encoded_term_with_new_atoms>
โ”‚
โ–ผ
[binary_to_term/1] โ”€โ”€โ–บ [Global atom_tab Allocation]
โ”‚
โ–ผ (When count exceeds 1,048,576)
[BEAM VM Fatal Panic & Exit]

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

title: CouchDB Atom Table Depletion Crash
id: a9079900-c04c-4db0-9799-couchdb00005
status: experimental
description: Detects Erlang crash dump files indicating atom_tab exhaustion in CouchDB deployments.
logsource:
category: file_event
service: couchdb
detection:
selection:
TargetFilename|endswith: 'erl_crash.dump'
content:
- 'no more index entries in atom_tab'
condition: selection and content
level: high

  1. Apply Apache CouchDB 3.5.3: The update replaces binary_to_term/1 with binary_to_term(Term, [safe]), strictly rejecting any serialized term that references an atom not already known to the BEAM runtime.

  2. Increase Atom Table Limit Temporarily: As a transient mitigation prior to patching, set +t 2097152 in vm.args to raise the atom threshold, although this only delays exhaustion.

  3. Restrict Read Privileges on _changes: Audit anonymous access to continuous changes feeds to ensure low-privilege actors cannot freely query change streams.