{"id":"CVE-2021-38295","state":"PUBLISHED","title":"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","publishedAt":"2021-10-14T19:55:12.000Z","updatedAt":"2024-08-04T01:37:16.335Z","severity":null,"assigner":"apache","products":["Apache Software Foundation Apache CouchDB","Apache Software Foundation IBM Cloudant"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache CouchDB","versions":[{"version":"Apache CouchDB","status":"affected","lessThan":"3.1.2","versionType":"custom"}]},{"vendor":"Apache Software Foundation","product":"IBM Cloudant","versions":[{"version":"IBM Cloudant","status":"affected","lessThan":"8201","versionType":"custom"}]}],"references":["https://docs.couchdb.org/en/stable/cve/2021-38295.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:48:49.871Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/38xxx/CVE-2021-38295.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-38295","state":"PUBLISHED","datePublished":"2021-10-14T19:55:12.000Z","dateUpdated":"2024-08-04T01:37:16.335Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2021-08-09T00:00:00.000Z"},"containers":{"cna":{"title":"Privilege escalation vulnerability when using HTML attachments","descriptions":[{"lang":"en","value":"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":[{"vendor":"Apache Software Foundation","product":"Apache CouchDB","versions":[{"version":"Apache CouchDB","status":"affected","lessThan":"3.1.2","versionType":"custom"}]},{"vendor":"Apache Software Foundation","product":"IBM Cloudant","versions":[{"version":"IBM Cloudant","status":"affected","lessThan":"8201","versionType":"custom"}]}],"references":[{"url":"https://docs.couchdb.org/en/stable/cve/2021-38295.html","tags":["x_refsource_MISC"]}],"metrics":[{"other":{"content":{"other":"low"},"type":"unknown"}}],"problemTypes":[{"descriptions":[{"description":"Privilege escalation","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"apache","dateUpdated":"2021-10-14T19:55:12.000Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09"},"credits":[{"lang":"en","value":"This issue was identified by Cory Sabol of Secure Ideas."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2021-38295","STATE":"PUBLIC","TITLE":"Privilege escalation vulnerability when using HTML attachments"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache CouchDB","version":{"version_data":[{"version_affected":"<","version_name":"Apache CouchDB","version_value":"3.1.2"}]}}]},"vendor_name":"Apache Software Foundation"},{"product":{"product_data":[{"product_name":"IBM Cloudant","version":{"version_data":[{"version_affected":"<","version_name":"IBM Cloudant","version_value":"8201"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"credit":[{"lang":"eng","value":"This issue was identified by Cory Sabol of Secure Ideas."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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"}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{"other":"low"}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Privilege escalation"}]}]},"references":{"reference_data":[{"name":"https://docs.couchdb.org/en/stable/cve/2021-38295.html","refsource":"MISC","url":"https://docs.couchdb.org/en/stable/cve/2021-38295.html"}]},"source":{"discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://docs.couchdb.org/en/stable/cve/2021-38295.html","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T01:37:16.335Z"}}]}}}