Apache CouchDB security advisories

Security information for Apache CouchDB

Reporting

Do you want to disclose a potential security issue for Apache CouchDB? Send your report to the Apache CouchDB Security Team.

Advisories

This section is experimental: it provides advisories since 2023 and may lag behind the official CVE publications. If you have any feedback on how you would like this data to be provided, you are welcome to reach out on our public mailinglist or privately on security@apache.org

Credential Disclosure to Non-Owner Members via Object-Form Replication Endpoint URLs

CVE-2026-107755 [CVE] [CVE json] [OSV json]

Last updated: 2026-10-20T15:41:21.272Z

Affected

  • Apache CouchDB before 3.5.3

Description

Insufficient filtering of credentials in the _replicator database in Apache CouchDB 3.5.2 and below on all platforms allows an authenticated user to read replication credentials of other users’ replications, not just their own.

Users are recommended to upgrade to version 3.5.3, which fixes this issue.

References

Credits

  • Sakil Ahamed Gayen (reporter)

Auth bypass in prefixed _users and _replicator databases

CVE-2026-90800 [CVE] [CVE json] [OSV json]

Last updated: 2026-10-20T15:40:46.476Z

Affected

  • Apache CouchDB before 3.5.3

Description

Missing authorisation checks in chttpd in Apache CouchDB 3.5.2 and below on all platforms allows any request to read the full contents of a prefixed _user or _replicator database via an unauthorised API endpoint.


The use of prefixed system databases is very rare.

Users are recommended to upgrade to version 3.5.3, which fixes this issue.

References

Credits

  • Qing Xu & ZeroVuln Labs reported this issue independently (reporter)

Atom-table exhaustion in _changes sequences and _search bookmarks with specially crafted sequence values

CVE-2026-90799 [CVE] [CVE json] [OSV json]

Last updated: 2026-10-20T15:40:15.444Z

Affected

  • Apache CouchDB before 3.5.3

Description

Unsafe binary deserialisation in chttpd in Apache CouchDB 3.5.2 and below on all platforms allows an authenticated user to cause a denial of service via memory exhaustion.

Users are recommended to upgrade to version 3.5.3, which fixes this issue.

References

Credits

  • Piotr Karwasz & ZeroVuln Labs reported this issue independently (finder)

Replicator follows redirects indefinitely

CVE-2026-90798 [CVE] [CVE json] [OSV json]

Last updated: 2026-10-20T15:39:50.951Z

Affected

  • Apache CouchDB before 3.5.3

Description

A missing circuit-breaker in the replicator in Apache CouchDB 3.5.2 and below on all platforms allows the owner of a replication source or target to cause a denial of service via creating an infinite HTTP redirect loop.

Users are recommended to upgrade to version 3.5.3, which fixes this issue.

References

Credits

  • The Apache CouchDB Team (finder)

Pre-authentication gzip decompression bomb via POST /_session

CVE-2026-90797 [CVE] [CVE json] [OSV json]

Last updated: 2026-10-20T15:39:22.336Z

Affected

  • Apache CouchDB before 3.5.3

Description

An unlimited gzip decompression routine in chttpd in Apache CouchDB 3.5.2 and below on all platforms allows any remote client to cause a denial of service via memory exhaustion.


Users are recommended to upgrade to version 3.5.3, which fixes this issue.

References

Credits

  • ZeroVuln labs (reporter)

Admin credentials leading to code execution as operating system user

CVE-2026-86471 [CVE] [CVE json] [OSV json]

Last updated: 2026-10-20T15:38:08.323Z

Affected

  • Apache CouchDB before 3.5.3

Description

An unvalidated runtime configuration value in Apache CouchDB 3.5.2 and below on all platforms allows a CouchDB server admin to run arbitrary shell commands as the CouchDB operating system user.

Users are recommended to upgrade to version 3.5.3, which fixes this issue.

References

Privilege Escalation Using _design Documents

CVE-2023-45725 [CVE] [CVE json] [OSV json]

Last updated: 2023-12-13T08:02:15.239Z

Affected

  • Apache CouchDB through 3.3.2
  • IBM Cloudant before 8413

Description

Design document functions which receive a user http request object may expose authorization or session cookie headers of the user who accesses the document.

These design document functions are:

  •   list
  •   show
  •   rewrite
  •   update
An attacker can leak the session component using an HTML-like output, insert the session as an external resource (such as an image), or store the credential in a _local document with an “update” function.

For the attack to succeed the attacker has to be able to insert the design documents into the database, then manipulate a user to access a function from that design document.

Workaround: Avoid using design documents from untrusted sources which may attempt to access or manipulate request object’s headers

References

Credits

  • Natan Nehorai from the JFrog Vulnerability Research Team (finder)
  • Or Peles from the JFrog Vulnerability Research Team (reporter)
  • Richard Ellis from IBM/Cloudant Team (finder)
  • Mike Rhodes from IBM/Cloudant Team (finder)

Information sharing via couchjs processes

CVE-2023-26268 [CVE] [CVE json] [OSV json]

Last updated: 2023-12-12T22:58:48.382Z

Affected

  • Apache CouchDB through 3.3.1
  • IBM Cloudant through 8349

Description

Design documents with matching document IDs, from databases on the same cluster, may share a mutable Javascript environment when using these design document functions:

  • validate_doc_update
  • list
  • filter
  • filter views (using view functions as filters)
  • rewrite
  • update
This doesn’t affect map/reduce or search (Dreyfus) index functions.
Users are recommended to upgrade to a version that is no longer affected by this issue (Apache CouchDB 3.3.2 or 3.2.3).
Workaround: Avoid using design documents from untrusted sources which may attempt to cache or store data in the Javascript environment.

References

Credits

Remote Code Execution Vulnerability in Packaging

CVE-2022-24706 [CVE] [CVE json] [OSV json]

Last updated: 2022-04-26T09:18:02.724Z

Affected

  • Apache CouchDB from Apache CouchDB through 3.2.1

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.

References

Credits

  • The Apache CouchDB Team would like to thank Alex Vandiver alexmv@zulip.com for the report of this issue.

Privilege escalation vulnerability when using HTML attachments

CVE-2021-38295 [CVE] [CVE json] [OSV json]

Last updated: 2021-10-14T16:26:03.894Z

Affected

  • Apache CouchDB from Apache CouchDB before 3.1.2
  • IBM Cloudant from IBM Cloudant before 8201

Description

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. A similar route is available with the already deprecated _show and _list functionality.

This privilege escalation vulnerability allows an attacker to add or remove data in any database or make configuration changes. This issue affected Apache CouchDB prior to 3.1.2

References

Credits

  • This issue was identified by Cory Sabol of Secure Ideas.