Vulnerability · Published Oct 14, 2021 · Assigned by apache

CVE-2021-38295Privilege escalation vulnerability when using HTML attachments

High 7.3

In plain English

A high-severity security flaw in Apache CouchDB from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS NVD)7.3High
Exploit odds (30 days)2.7%top 13.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official 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

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache CouchDB Apache CouchDB – before 3.1.2
Apache Software Foundation IBM Cloudant IBM Cloudant – before 8201

References