Skip to content

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

HighCVSS 7.3 EPSS 3.7%
Published
Updated
Exploit status
No public exploit known
Technology
Ubuntu

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

Upgrade path

4 packages: 3 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/couchdb(Ubuntu 16.04) = 1.6.0-0ubuntu7; All versions No fix listed No fix yet
Apache CouchDB >= Apache CouchDB, < 3.1.2 3.1.2 Fixed
apache couchdb < 3.1.2 3.1.2 Fixed
apache IBM Cloudant >= IBM Cloudant, < 8201 8201 Fixed

Affected products

ProductAffected versionsFixed in
apache couchdb < 3.1.2 3.1.2
Apache CouchDB >= Apache CouchDB, < 3.1.2 3.1.2
apache IBM Cloudant >= IBM Cloudant, < 8201 8201
ubuntu/couchdb(Ubuntu:16.04) All versions No fix listed
ubuntu/couchdb(Ubuntu:16.04) = 1.6.0-0ubuntu7 No fix listed

References