VulnarioBlogCouchDB vulnerabilities

CouchDB Vulnerabilities: The 10 Most Critical CouchDB Security Bugs (CVEs)

CouchDB vulnerabilities are security flaws in CouchDB that attackers can abuse to steal data, take over a server or interrupt a service. Apache CouchDB is a document-oriented NoSQL database with an HTTP API. The National Vulnerability Database (NVD) lists 20 CVEs for CouchDB, 3 of them rated critical, and none were published in the last 12 months. CISA lists 1 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.

This guide lists the 10 most critical CouchDB security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers CouchDB security basics, the current end-of-life dates and a free way to be told about the next CouchDB CVE as soon as it is published.

Key takeaways

  • 1 CVE is in CISA's KEV catalog, so attackers have exploited it in the wild.
  • 3 CouchDB CVEs are rated critical (CVSS v3), and 0 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2022-24706, published Apr 26, 2022.
  • Supported CouchDB releases today (per endoflife.date): 3.5, 3.4. Releases not on the list are past their announced end of life.
  • You can monitor CouchDB for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these CouchDB CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical CouchDB CVEs at a glance

Most critical CouchDB vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2022-247069.8 Critical2022-04-26Apache CouchDB Insecure Default Initialization of ResourceYes
2CVE-2020-19559.8 Critical2020-05-20Missing authenticationNo
3CVE-2017-126359.8 Critical2017-11-14Improper privilege managementNo
4CVE-2018-148897.8 High2018-09-21Improper input validationNo
5CVE-2016-87427.8 High2018-02-12Permissions and privilegesNo
6CVE-2021-382957.3 High2021-10-14Cross-site scripting (XSS)No
7CVE-2018-171887.2 High2019-01-02Security flawNo
8CVE-2018-117697.2 High2018-08-08Remote code executionNo
9CVE-2018-80077.2 High2018-07-11Improper input validationNo
10CVE-2017-126367.2 High2017-11-14OS command injectionNo

Each CouchDB CVE explained

1. CVE-2022-24706: Apache CouchDB Insecure Default Initialization of Resource

  • CVSS 9.8 Critical
  • In CISA KEV (added 2022-08-25)
  • Published 2022-04-26
  • CWE-1188
What NVD says
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.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 3.2.2
What to do
Upgrade to 3.2.2 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2022-24706 (opens in a new tab)

2. CVE-2020-1955: Missing authentication

  • CVSS 9.8 Critical
  • Published 2020-05-20
  • CWE-306
What NVD says
CouchDB version 3.0.0 shipped with a new configuration setting that governs access control to the entire database server called `require_valid_user_except_for_up`. It was meant as an extension to the long standing setting `require_valid_user`, which in turn requires that any and all requests to CouchDB will have to be made with valid credentials, effectively forbidding any anonymous requests.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
3.0.0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2020-1955 (opens in a new tab)

3. CVE-2017-12635: Improper privilege management

  • CVSS 9.8 Critical
  • Published 2017-11-14
  • CWE-269
What NVD says
Due to differences in the Erlang-based JSON parser and JavaScript-based JSON parser, it is possible in Apache CouchDB before 1.7.0 and 2.x before 2.1.1 to submit _users documents with duplicate keys for 'roles' used for access control within the database, including the special case '_admin' role, that denotes administrative users.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 1.7.0; 2.0.0
What to do
Upgrade to 1.7.0 or a later release, then restart the service.

NVD record for CVE-2017-12635 (opens in a new tab)

4. CVE-2018-14889: Improper input validation

  • CVSS 7.8 High
  • Published 2018-09-21
  • CWE-20
What NVD says
CouchDB in Vectra Networks Cognito Brain and Sensor before 4.3 contains a local code execution vulnerability.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
See the NVD record for the full list of affected versions.
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2018-14889 (opens in a new tab)

5. CVE-2016-8742: Permissions and privileges

  • CVSS 7.8 High
  • Published 2018-02-12
  • CWE-264
What NVD says
The Windows installer that the Apache CouchDB team provides was vulnerable to local privilege escalation. All files in the install inherit the file permissions of the parent directory and therefore a non-privileged user can substitute any executable for the nssm.exe service launcher, or CouchDB batch or binary files. A subsequent service or server restart will then run that binary with administrator privilege.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.0.0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2016-8742 (opens in a new tab)

6. CVE-2021-38295: Cross-site scripting (XSS)

  • CVSS 7.3 High
  • Published 2021-10-14
  • CWE-79
What NVD says
In Apache CouchDB, a malicious user with permission to create documents in a database is able to attach a HTML attachment to a document. If a CouchDB admin opens that attachment in a browser, e.g. via the CouchDB admin interface Fauxton, any JavaScript code embedded in that HTML attachment will be executed within the security context of that admin.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 3.1.2
What to do
Upgrade to 3.1.2 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2021-38295 (opens in a new tab)

7. CVE-2018-17188: Security flaw

  • CVSS 7.2 High
  • Published 2019-01-02
What NVD says
Prior to CouchDB version 2.3.0, CouchDB allowed for runtime-configuration of key components of the database. In some cases, this lead to vulnerabilities where CouchDB admin users could access the underlying operating system as the CouchDB user. Together with other vulnerabilities, it allowed full system entry for unauthenticated users.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing high privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 2.3.0
What to do
Upgrade to 2.3.0 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2018-17188 (opens in a new tab)

8. CVE-2018-11769: Remote code execution

  • CVSS 7.2 High
  • Published 2018-08-08
What NVD says
CouchDB administrative users before 2.2.0 can configure the database server via HTTP(S).
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing high privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 2.2.0
What to do
Upgrade to 2.2.0 or a later release, then restart the service.

NVD record for CVE-2018-11769 (opens in a new tab)

9. CVE-2018-8007: Improper input validation

  • CVSS 7.2 High
  • Published 2018-07-11
  • CWE-20
What NVD says
Apache CouchDB administrative users can configure the database server via HTTP(S).
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing high privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 1.7.1; 2.0.0 through 2.1.1
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2018-8007 (opens in a new tab)

10. CVE-2017-12636: OS command injection

  • CVSS 7.2 High
  • Published 2017-11-14
  • CWE-78
What NVD says
CouchDB administrative users can configure the database server via HTTP(S). Some of the configuration options include paths for operating system-level binaries that are subsequently launched by CouchDB. This allows an admin user in Apache CouchDB before 1.7.0 and 2.x before 2.1.1 to execute arbitrary shell commands as the CouchDB user, including downloading and executing scripts from the public internet.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing high privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 1.7.0; 2.0.0
What to do
Upgrade to 1.7.0 or a later release, then restart the service.

NVD record for CVE-2017-12636 (opens in a new tab)

CouchDB end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid CouchDB vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported CouchDB releases are 3.5, 3.4.

CouchDB release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
CouchDB 3.5May 5, 2025Not announced3.5.3Supported
CouchDB 3.4Sep 20, 2024Not announced3.4.3Supported
CouchDB 3.3Dec 28, 2022May 5, 20253.3.3End of life
CouchDB 3.2Oct 8, 2021Sep 20, 20243.2.3End of life

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

CouchDB security checklist

  1. Never expose the database port to the internet; allow only the application servers.
  2. Use strong, unique credentials and least-privilege accounts for each application.
  3. Apply minor and security releases on a regular cadence, after testing.
  4. Encrypt connections with TLS and encrypt backups.
  5. Restrict or remove admin tools you do not need.
  6. Test restoring from backup, not only creating backups.

Your stack is bigger than CouchDB. A flaw anywhere in the chain can be the way in, so also review our guides to MongoDB vulnerabilities, Redis vulnerabilities and Node.js vulnerabilities.

How to get alerted about new CouchDB vulnerabilities

NVD received 0 new CouchDB CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose CouchDB and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run CouchDB alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about CouchDB vulnerabilities

What are the most critical CouchDB vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical CouchDB CVEs include CVE-2022-24706 (CVSS 9.8), CVE-2020-1955 (CVSS 9.8), CVE-2017-12635 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have CouchDB vulnerabilities been exploited in real attacks?

Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 1 CouchDB CVE, including CVE-2022-24706. Treat these as the highest priority to patch.

How many vulnerabilities does CouchDB have?

As of Nov 3, 2026 the National Vulnerability Database lists 20 CVEs for CouchDB, with 3 rated critical by CVSS v3. 0 were published in the previous twelve months.

Which CouchDB versions are still supported?

As of Nov 3, 2026, endoflife.date lists these CouchDB releases as supported: 3.5, 3.4. Releases that are not listed are past their announced end of life.

How can I get alerted when a new CouchDB CVE is published?

Add CouchDB to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose CouchDB and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is CouchDB secure?

CouchDB is as secure as its patch level. NVD published 0 new CouchDB CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2022-24706?

CVE-2022-24706 is a critical CouchDB vulnerability with a CVSS score of 9.8, published Apr 26, 2022. In Apache CouchDB prior to 3.2.2, an attacker can access an improperly secured default installation without authenticating and gain admin privileges.

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.