CVE-2021-38295
JSON

7.3high

Privilege escalation vulnerability when using HTML attachments

Severity
7.3high CVSS:3.1 by NVD
Exploit likelihood
3.73% (higher than 90% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
BIT-COUCHDB-2021-38295

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

Product or packageVersionsReported by
Apache Software Foundation Apache CouchDBfrom Apache CouchDB before 3.1.2CVE List
Apache Software Foundation IBM Cloudantfrom IBM Cloudant before 8201CVE List
apache couchdbbefore 3.1.2NVD
couchdb (Bitnami)before 3.1.2Bitnami Vulnerability Database

All scores

NVD7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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

NVD (es)

En Apache CouchDB, un usuario malicioso con permiso para crear documentos en una base de datos puede adjuntar un archivo adjunto HTML a un documento. Si un administrador de CouchDB abre ese adjunto en un navegador, por ejemplo, por medio de la interfaz de administración de CouchDB Fauxton, cualquier código JavaScript insertado en ese adjunto HTML se ejecutará dentro del contexto de seguridad de ese administrador. Una ruta similar está disponible con la funcionalidad _show y _list, ya obsoleta. Esta vulnerabilidad de escalada de privilegios permite a un atacante añadir o eliminar datos en cualquier base de datos o realizar cambios de configuración. Este problema afectaba a Apache CouchDB versiones anteriores a 3.1.2

References

Sources

SourceRecordLicence
CVE ListCVE-2021-38295 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-38295 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-COUCHDB-2021-38295 changed 2026-09-08Apache-2.0