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 package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache CouchDB | from Apache CouchDB before 3.1.2 | CVE List |
| Apache Software Foundation IBM Cloudant | from IBM Cloudant before 8201 | CVE List |
| apache couchdb | before 3.1.2 | NVD |
| couchdb (Bitnami) | before 3.1.2 | Bitnami Vulnerability Database |
All scores
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.0medium CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
| Bitnami Vulnerability Database | high 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
| https://docs.couchdb.org/en/stable/cve/2021-38295.html | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-38295 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-38295 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-38295 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-COUCHDB-2021-38295 changed 2026-09-08 | Apache-2.0 |