Privilege escalation vulnerability when using HTML attachments
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-79.
Summary
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
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
- Fix · CNA Apache CouchDB (Apache Software Foundation) Fixed in 3.1.2
- Fix · CNA IBM Cloudant (Apache Software Foundation) Fixed in 8201
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat JBoss Fuse 6 | Affected | No fix planned: Out of support scope |
Not affected: 3 products
- Red Hat Fuse 7
- Red Hat Integration Camel K 1
- Red Hat Integration Camel Quarkus 1
Timeline
- 2026-10-02 Threatist record created from CVE-2021-38295
- 2026-10-03 Alias added: GHSA-gr7p-9mx8-wr74
References
More Apache Couchdb vulnerabilities
- TI-2022-08521 Remote Code Execution Vulnerability in Packaging KEVCVSS 3.1CRITICAL 9.8
- TI-2017-09360 Improper privilege management in Apache CouchDB CVSS 3.0CRITICAL 9.8
- TI-2017-09361 OS command injection in Apache CouchDB CVSS 3.0HIGH 7.2
- TI-2020-01879 Missing authentication in Apache CouchDB CVSS 3.1CRITICAL 9.8
- TI-2018-05784 Improper input validation in Apache CouchDB CVSS 3.0HIGH 7.2
- TI-2018-08426 CouchDB administrative users before 2.2.0 can configure the database server via HTTP(S). CVSS 3.0HIGH 7.2
Sources
- CVE-2021-38295 · CVE Program
- CVE-2021-38295 · NVD
- FIRST EPSS
- GHSA-gr7p-9mx8-wr74 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-38295 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences