{"id":"CVE-2021-38295","published":"2021-10-14T19:55:12Z","modified":"2024-08-04T01:37:16Z","title":"Privilege escalation vulnerability when using HTML attachments","vendor":"Apache","product":"Apache CouchDB","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03731,"percentile":0.89903,"provenance":"source"},"cwes":[],"references":[{"url":"https://docs.couchdb.org/en/stable/cve/2021-38295.html","tags":["x_refsource_MISC"]}],"priority":{"score":23.0,"factors":[{"name":"EPSS percentile","points":17.98},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2021-10-14","earliestUrl":"https://github.com/ProfessionallyEvil/CVE-2021-38295-PoC","repos":[{"name":"ProfessionallyEvil/CVE-2021-38295-PoC","url":"https://github.com/ProfessionallyEvil/CVE-2021-38295-PoC","stars":3,"created":"2021-10-14"}]},"first":{"date":"2021-10-14","source":"PoC-in-GitHub","url":"https://github.com/ProfessionallyEvil/CVE-2021-38295-PoC"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache CouchDB","versions":[">= Apache CouchDB, < 3.1.2"]},{"vendor":"Apache Software Foundation","product":"IBM Cloudant","versions":[">= IBM Cloudant, < 8201"]}],"euvd":{"id":"EUVD-2021-24752","exploited":false,"provenance":"source"}}