7.3

CVE-2021-38295: Privilege escalation vulnerability when using HTML attachments

Modified
AliasesMGASA-2021-0520UBUNTU-CVE-2021-38295
Published 14-10-2021Last modified 04-08-2024

Vulnerability summary

CVE-2021-38295 is a high (CVSS 7.3) vulnerability in apache software foundation apache couchdb. EPSS estimates a 3.73% chance of exploitation in the next 30 days, higher than 90.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.3/10
010
High · v3.1 (NVD)
EPSS score
3.73%
0%100%
Low · +0.98 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 14-10-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

3.73%

Chance of exploitation in the next 30 days

Percentile

90%

Versus all other CVEs

30-day change

Increase +0.98 pp

From 2.75% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Apache software foundation2 products
Apache1 product
Mageia1 product
  • couchdb< 3.1.2-1.mga8
Ubuntu1 product
  • couchdbAll versions (No fix recorded)

4 vendors · 5 products

References

6 links