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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache CouchDB | ≤ 3.3.1 | — |
| Apache Software Foundation | IBM Cloudant | ≤ 8349 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | couchdb | No fix yet | — |
References
- https://lists.apache.org/thread/r2wvjfysg3d92lhhjd1qh3wfr8mlp0pp vendor-advisory
- https://docs.couchdb.org/en/stable/cve/2023-26268.html release-notes
- https://lists.apache.org/thread/ldkqs0nhpmho26bdxf4fon7w75hsq5gl vendor-advisory