CVE-2021-38295

Privilege escalation vulnerability when using HTML attachments

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

Category

7.3
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 4.56% Top 15%
Vendor Advisory couchdb.org
Affected: Apache Software Foundation Apache CouchDB
Affected: Apache Software Foundation IBM Cloudant
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-38295?
CVE-2021-38295 has been scored as a high severity vulnerability.
How to fix CVE-2021-38295?
To fix CVE-2021-38295, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-38295 being actively exploited in the wild?
It is possible that CVE-2021-38295 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~5% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-38295?
CVE-2021-38295 affects Apache Software Foundation Apache CouchDB, Apache Software Foundation IBM Cloudant.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.