CVE-2021-38295
mediumpriority · track · 40EPSS 0.027 · 86 %ileexploit · PoCEUUSEPSS · scored 2026-10-27
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
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6–7.3
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- BIT-couchdb-2021-38295Privilege escalation vulnerability when using HTML attachments2024-03-06vendor · osvUS
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
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- http://docs.couchdb.org/en/stable/cve/2021-38295.htmlPatchcnnvd
- https://docs.couchdb.org/en/stable/cve/2021-38295.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-38295cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021101205cnnvd
- https://docs.couchdb.org/en/stable/cve/2021-38295.htmlenisa_euvd
- https://docs.couchdb.org/en/stable/cve/2021-38295.htmlVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan