Description
In Apache CouchDB prior to 3.2.2, an attacker can access an improperly secured default installation without authenticating and gain admin privileges. The CouchDB documentation has always made recommendations for properly securing an installation, including recommending using a firewall in front of all CouchDB installations.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache CouchDB | Apache CouchDB – ≤ 3.2.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Apache Couchdb Erlang RCE
exploit/multi/http/apache_couchdb_erlang_rce
Exploit-DB 1
- Apache CouchDB 3.2.1 - Remote Code Execution (RCE) EDB-50914 · remote · May 11, 2022
GitHub 5 repositories
-
sadshade/CVE-2022-24706-CouchDB-Exploit ★ 29 · May 20, 2022
Apache CouchDB 3.2.1 - Remote Code Execution (RCE)
-
ahmetsabrimert/Apache-CouchDB-CVE-2022-24706-RCE-Exploits-Blog-post- ★ 1 · Jun 14, 2022
I wrote a blog post about Apache CouchDB CVE-2022-24706 RCE Exploits
-
junghyeonkum/CVE-2022-24706 ★ 0 · Jul 8, 2026
-
becrevex/CVE-2022-24706 ★ 0 · Oct 8, 2024
Apache CouchDB 3.2.1 - Remote Code Execution (RCE) Checker
-
superzerosec/CVE-2022-24706 ★ 0 · Jul 4, 2022
CVE-2022-24706 POC exploit
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- CouchDB Erlang Distribution - Remote Command Execution network/cves/2022/CVE-2022-24706.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://lists.apache.org/thread/w24wo0h8nlctfps65txvk0oc5hdcnv00
- https://docs.couchdb.org/en/3.2.2/setup/cluster.html
- [oss-security] 20220426 CVE-2022-24706: Apache CouchDB: Remote Code Execution Vulnerability in Packaging mailing-list
- [oss-security] 20220509 Re: CVE-2022-24706: Apache CouchDB: Remote Code Execution Vulnerability in Packaging mailing-list
- [oss-security] 20220509 Re: CVE-2022-24706: Apache CouchDB: Remote Code Execution Vulnerability in Packaging mailing-list
- [oss-security] 20220509 Re: CVE-2022-24706: Apache CouchDB: Remote Code Execution Vulnerability in Packaging mailing-list
- [oss-security] 20220509 Re: CVE-2022-24706: Apache CouchDB: Remote Code Execution Vulnerability in Packaging mailing-list
- http://packetstormsecurity.com/files/167032/Apache-CouchDB-3.2.1-Remote-Code-Execution.html
- https://medium.com/%40_sadshade/couchdb-erlang-and-cookies-rce-on-default-settings-b1e9173a4bcd
- http://packetstormsecurity.com/files/169702/Apache-CouchDB-Erlang-Remote-Code-Execution.html