Privilege escalation vulnerability when using HTML attachments

Patch this weekFull system takeover with local access.
7.3HIGH

Key Information:

Vendor

Apache

CVE ID
CVE ID:
CVE-2021-38295
Vendor
CVE Published:
14 October 2021
Fixed in
Fixed in:
3.1.2

Timeline

Exploit known the day it was published

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

How risky is it?

  • No: Needs local access
  • Yes: Public exploit code (1 proof-of-concept)
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Update to a fixed version
Apache CouchDB Apache CouchDB to below 3.1.2 is vulnerable
IBM Cloudant IBM Cloudant to below 8201 is vulnerable
Install Apache CouchDB 3.1.2 or later
Install IBM Cloudant 8201 or later
2Look for signs of compromise

Exploit code is public, so check logs on exposed Apache CouchDB systems for unusual requests or new processes from before you patched. The 1 public proof-of-concept show what an attack looks like.

3Why it's rated "Patch this week"
  • Exploit code is public, so attacks are easy to copy.
  • Its CVSS severity is high (7.3).

What is CVE-2021-38295?

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

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

Key Exchange Vulnerability in Apache Tomcat

CVE-2026-133325
ApacheApache Tomcat๐Ÿ˜„๐Ÿ‘พ9.8CRITICAL

Improper Exception Management in Apache Tomcat Affects Multiple Versions

CVE-2026-116561
ApacheApache Tomcat๐Ÿ˜„9.1CRITICAL

Deserialization Vulnerability in Apache Roller Affects Multiple Versions

CVE-2026-129448
ApacheApache Roller๐Ÿ˜„๐Ÿ‘พ9.8CRITICAL
View more Apache vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

CVSS V3.1

Score:
7.3
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
Required
Scope:
Unchanged

Credit

This issue was identified by Cory Sabol of Secure Ideas.
.