Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-24706: Unauthenticated Remote Code Execution in Apache CouchDB

Published Apr 26, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS97.2%100th percentile
CISA KEVYesAdded Aug 25, 2022
In the wildActivePer CISA KEV
Vendor
Apache Software Foundation
IdentifiersCVE-2022-24706CWE-798

CVE-2022-24706 affects improperly secured Apache CouchDB installations before version 3.2.2. CouchDB packaging used a publicly known default Erlang authentication cookie for both single-node and clustered installations. The Erlang distribution service opens a random port bound to all available interfaces, advertised by the Erlang Port Mapper Daemon (epmd) on TCP port 4369. Attackers who can reach these services and know the default cookie can authenticate Erlang-node communications without CouchDB credentials, gain administrative privileges, and execute operating-system commands.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits administrative access and remote command execution on the CouchDB host. Observed exploitation deployed Kinsing cryptocurrency-mining malware, attempted rootkit installation and security-control disabling, removed competing miners, and established persistence. Operating-system actions depend on the compromised process's privileges; exploitation does not establish that root access is automatically obtained.

Mitigation

If you can’t patch tonight, do this now.

Place CouchDB installations behind a firewall. Restrict access to TCP port 4369 and the Erlang distribution port to trusted systems that require Erlang-node communication, and prevent their exposure to untrusted networks.

Remediation

Patch, then assume compromise.

Upgrade Apache CouchDB to version 3.2.2 or a later supported release and apply the installation-security recommendations in the CouchDB documentation.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
apache_couchdb_erlang_rce.rbThis repository contains a single Metasploit module (modules/exploits/multi/http/apache_couchdb_erlang_rce.rb) that exploits CVE-2022-24706, a remote code execution vulnerability in Apache CouchDB prior to version 3.2.2. The exploit targets the Erlang distribution protocol, leveraging the default cookie ('monster') to authenticate and execute arbitrary commands on the target system. The module supports multiple payload types, including command execution and staged payloads (reverse shells, Meterpreter, PowerShell stagers) for both Windows and Linux platforms. The exploit operates over the network, connecting to the Erlang Port Mapper Daemon (EPMD) on TCP port 4369 to enumerate and attack Erlang nodes. The code is weaponized, allowing for easy payload customization and reliable exploitation. The repository is structured as a typical Metasploit module, with all logic contained in a single Ruby file.Disclosed Jan 21, 2022 · Framework: metasploit · ruby · networkWeaponizedCVE-2022-24706-CouchDB-ExploitThis repository contains a Python exploit script (CVE-2022-24706-Exploit.py) targeting Apache CouchDB versions 3.2.1 and below, exploiting CVE-2022-24706. The exploit leverages the Erlang distribution protocol (EPMD, default port 4369) and the default Erlang cookie ('monster') to authenticate to the CouchDB node and execute arbitrary system commands remotely. The script first connects to the EPMD service to enumerate available Erlang nodes and their ports, then authenticates using the default cookie, and finally allows the attacker to interactively send system commands to be executed on the target. The README provides context, references, and usage notes. The exploit is operational, requiring the target to expose EPMD and use the default cookie, and provides full remote code execution capabilities.sadshade · Disclosed May 20, 2022 · python · markdown · networkOperationalCVE-2022-24706This repository is a small proof-of-concept exploit for CVE-2022-24706 affecting Apache CouchDB. It contains three files: a README describing the vulnerability and reproduction steps, a docker-compose lab that starts a vulnerable CouchDB 3.2.1 instance, and the main exploit script poc.py. The exploit is a standalone Python script, not tied to a major exploitation framework. The core capability is remote command execution over the Erlang distribution protocol. The script first connects to the target's EPMD service on a user-supplied port (typically 4369) and sends an Erlang node-list request packet to enumerate available nodes and extract the active Erlang distribution port. It then connects to that discovered node port, performs the Erlang handshake, derives a challenge response using the hardcoded default cookie 'monster', and if authentication succeeds, enters an interactive loop. In that loop it wraps operator-provided commands into an Erlang RPC payload that calls os:cmd on the remote node and prints the returned output. The exploit is operational rather than a simple detector because it performs full authentication and arbitrary command execution. It assumes the target is vulnerable because the Erlang cookie remains at the default value and the Erlang distribution services are reachable from the attacker. The docker-compose file exposes ports 5984, 4369, and 9100 to make local testing easy; however, the script itself dynamically discovers the actual Erlang node port through EPMD rather than assuming 9100. Overall, the repository's purpose is to demonstrate and reproduce unauthenticated-to-authenticated remote code execution against exposed CouchDB Erlang distribution services when the default cookie is unchanged.junghyeonkum · Disclosed Jul 8, 2026 · markdown · yaml · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationCouchdbapplication
FAQ

Frequently asked questions

Is CVE-2022-24706 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 25, 2022.
Is there a public exploit for CVE-2022-24706?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2022-24706, the earliest disclosed Jan 21, 2022.
Is there a patch for CVE-2022-24706?
Upgrade Apache CouchDB to version 3.2.2 or a later supported release and apply the installation-security recommendations in the CouchDB documentation.
What products are affected by CVE-2022-24706?
Apache Software Foundation Couchdb.
How severe is CVE-2022-24706?
CVE-2022-24706 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 97.2% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
nuclei templates pull requestsNews · Mar 24, 2026Add 5 KEV CVE templates (CVE-2020-5849, CVE-2016-3976, CVE-2016-2388, CVE-2020-10221, CVE-2022-24706) by ElromEvedElElyon · Pull Request #15675 · projectdiscovery/nuclei-templates · GitHubA critical remote privilege escalation vulnerability affecting Apache CouchDB.Read more ↗f6News · Jan 1, 2026Нежданные гости: F6 проанализировала первые масштабные атаки группы Kinsing на российские компанииListed as a vulnerability frequently exploited by Kinsing to execute malicious code and deploy cryptomining payloads. The content does not describe its technical mechanism or identify its affected product.Read more ↗countercraftNews · May 30, 2022Active Exploitation of Apache CouchDB CVE-2022-24706A critical remote code execution vulnerability in improperly secured Apache CouchDB installations. Attackers exploit the default Erlang authentication cookie, 'monster', and exposed Erlang distribution ports to execute commands without legitimate credentials. Observed attacks install Kinsing, which deploys the Kdevtmpfsi cryptominer, with rootkit functionality and persistence through cron and systemd.Read more ↗countercraftNews · Mar 6, 2022Confluence CVE-2022-26134 Active Exploitation | CounterCraftA CouchDB vulnerability mentioned as a comparison illustrating rapid exploitation after public exploit publication. The report connects the Kinsing cryptominer installation sequence observed in Confluence attacks to previously discussed CouchDB exploitation events.Read more ↗
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware5Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.