The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-24706

CVE-2022-24706: Apache CouchDB Auth Bypass Vulnerability

CVE-2022-24706 is an authentication bypass flaw in Apache CouchDB that allows attackers to gain admin privileges on improperly secured installations. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-24706 Overview

CVE-2022-24706 is a critical authentication bypass vulnerability affecting Apache CouchDB versions prior to 3.2.2. The vulnerability allows remote attackers to access an improperly secured default installation without authentication and gain administrative privileges. This flaw stems from insecure default configuration settings that, when exploited, can lead to complete system compromise through remote code execution.

Apache CouchDB is a popular open-source NoSQL document-oriented database that uses JSON for documents and JavaScript for MapReduce indexes. The vulnerability is particularly dangerous because it affects default installations that have not been hardened according to Apache's security recommendations, and many deployments may be exposed on the network without proper firewall protection.

Critical Impact

This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild. Attackers can gain full administrative access to CouchDB instances and execute arbitrary code on the underlying system.

Affected Products

  • Apache CouchDB versions prior to 3.2.2
  • Apache CouchDB default installations without proper security hardening
  • CouchDB deployments exposed without firewall protection

Discovery Timeline

  • April 26, 2022 - CVE-2022-24706 published to NVD
  • October 28, 2025 - Last updated in NVD database

Technical Details for CVE-2022-24706

Vulnerability Analysis

This vulnerability exploits insecure default configuration in Apache CouchDB installations, specifically related to the Erlang distribution protocol used for cluster communication. CouchDB is built on Erlang/OTP, which uses a cookie-based authentication mechanism for inter-node communication. In default configurations, this Erlang cookie can be predictable or easily guessable, allowing attackers to establish unauthorized connections to the CouchDB node.

Once an attacker successfully authenticates to the Erlang distribution port (typically port 4369 for EPMD and dynamically assigned ports for node communication), they can execute arbitrary Erlang code on the target system. This effectively grants full administrative privileges to the CouchDB instance and enables remote code execution on the underlying operating system.

The vulnerability is classified under CWE-1188 (Initialization with Hard-Coded Network Resource Configuration Default), reflecting the core issue of insecure default settings that expose the system to attack.

Root Cause

The root cause of CVE-2022-24706 lies in CouchDB's default configuration that does not adequately secure the Erlang distribution mechanism used for clustering. By default, CouchDB installations may use a predictable Erlang cookie value, and the Erlang Port Mapper Daemon (EPMD) may be accessible from the network. When these conditions are present, attackers can connect to the Erlang runtime and execute arbitrary code.

While the CouchDB documentation has always recommended proper security hardening including firewall deployment, many installations in the wild do not follow these best practices, leaving the Erlang distribution ports exposed and vulnerable.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker targeting a vulnerable CouchDB instance would:

  1. Identify exposed CouchDB instances with accessible Erlang distribution ports
  2. Connect to the EPMD service (port 4369) to discover the CouchDB node name and distribution port
  3. Authenticate to the Erlang distribution using the default or predictable cookie value
  4. Execute arbitrary Erlang code through the established connection, which can spawn OS-level commands

The exploitation of this vulnerability has been documented in public exploit code available through Packet Storm Security, demonstrating both Apache CouchDB 3.2.1 Remote Code Execution and Apache CouchDB Erlang Remote Code Execution techniques. A detailed technical analysis is also available in this Medium article on CouchDB Erlang Cookie RCE.

Detection Methods for CVE-2022-24706

Indicators of Compromise

  • Unexpected connections to Erlang distribution ports (typically 4369 and dynamically assigned high ports)
  • Unauthorized administrative actions in CouchDB logs
  • Anomalous process spawning from the CouchDB or Erlang beam process
  • Network traffic patterns indicating Erlang distribution protocol communication from external sources

Detection Strategies

  • Monitor for connection attempts to port 4369 (EPMD) from external or untrusted networks
  • Implement network-based detection rules for Erlang distribution protocol handshakes
  • Review CouchDB audit logs for unauthorized database operations or configuration changes
  • Deploy endpoint detection to identify suspicious process trees originating from the CouchDB service

Monitoring Recommendations

  • Configure alerting for any external access attempts to EPMD and Erlang distribution ports
  • Implement log aggregation for CouchDB instances to centrally monitor administrative actions
  • Use network segmentation monitoring to detect lateral movement following potential compromise
  • Enable process execution monitoring on CouchDB servers to detect post-exploitation activity

How to Mitigate CVE-2022-24706

Immediate Actions Required

  • Upgrade Apache CouchDB to version 3.2.2 or later immediately
  • Implement firewall rules to block external access to ports 4369 and Erlang distribution ports
  • Change the default Erlang cookie to a strong, random value
  • Review CouchDB instances for signs of prior compromise before patching

Patch Information

Apache has addressed this vulnerability in CouchDB version 3.2.2. Organizations should upgrade to this version or later as soon as possible. The official Apache Mailing List Thread provides additional context on the security fix.

Given that this vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, federal agencies and organizations following CISA guidance are required to remediate this vulnerability according to specified timelines. The CouchDB Cluster Documentation provides guidance on secure cluster configuration.

Workarounds

  • Configure firewall rules to restrict access to CouchDB administrative ports to trusted networks only
  • Bind CouchDB and Erlang services to localhost or internal interfaces if remote access is not required
  • Generate and configure a strong, unique Erlang cookie for each CouchDB deployment
  • Implement network segmentation to isolate CouchDB instances from untrusted network segments
bash
# Firewall configuration example to restrict Erlang ports
# Block external access to EPMD and Erlang distribution ports
iptables -A INPUT -p tcp --dport 4369 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 4369 -j DROP
iptables -A INPUT -p tcp --dport 9100:9200 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 9100:9200 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechApache Couchdb

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-1188
  • Technical References
  • Packet Storm RCE Exploit

  • Packet Storm RCE Exploit

  • OpenWall OSS Security Discussion

  • OpenWall OSS Security Discussion

  • CouchDB Cluster Documentation

  • Medium Analysis of RCE

  • CISA CVE-2022-24706 Listing
  • Vendor Resources
  • OpenWall OSS Security Discussion

  • OpenWall OSS Security Discussion

  • OpenWall OSS Security Discussion

  • Apache Mailing List Thread
  • Related CVEs
  • CVE-2023-45725: Apache CouchDB Information Disclosure Flaw

  • CVE-2023-26268: Apache CouchDB Information Disclosure
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English