CVE-2021-38504: Mozilla Firefox - Use After Free
- Cve: CVE-2021-38504
- Name: Mozilla Firefox - Use After Free
- Description: When interacting with an HTML input element's file picker dialog with webkitdirectory set, a use-after-free could have resulted, leading to memory corruption and a potentially exploitable crash. This vulnerability affects Firefox < 94, Thunderbird < 91.3, and Firefox ESR < 91.3.
- Impact: Attackers can cause memory corruption and crashes, potentially leading to arbitrary code execution or stability issues.
- Remediation: Update to Firefox 94, Thunderbird 91.3, or latest versions.
- Vulnerability type: use_after_free
- Vulnerability impact: denial_of_service
- Requirement type: user_interaction
- Requirements: Attacker needs user interaction to trigger the file picker dialog.
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.01766
- Epss percentile: 0.78658
- Assignee: [email protected]
- Published at: 2021-12-08T22:15:08Z
- Age in days: 1812
- Modified at: 2026-06-17T04:02:14Z
- Patch available: yes
- References total: 10
- Products total: 4
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-38504
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugzilla.mozilla.org/show_bug.cgi?id=1730156 | Issue Tracking, Permissions Required, Vendor Advisory |
| https://www.mozilla.org/security/advisories/mfsa2021-48/ | Vendor Advisory |
| https://www.mozilla.org/security/advisories/mfsa2021-49/ | Vendor Advisory |
| https://www.mozilla.org/security/advisories/mfsa2021-50/ | Vendor Advisory |
| https://lists.debian.org/debian-lts-announce/2021/12/msg00030.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/01/msg00001.html | Mailing List, Third Party Advisory |
| https://security.gentoo.org/glsa/202202-03 | Third Party Advisory |
| https://security.gentoo.org/glsa/202208-14 | Third Party Advisory |
| https://www.debian.org/security/2021/dsa-5026 | Third Party Advisory |
| https://www.debian.org/security/2022/dsa-5034 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| mozilla:firefox | < 94.0 | /v1/products/mozilla/firefox |
| mozilla:thunderbird | < 91.3.0 | /v1/products/mozilla/thunderbird |
| mozilla:firefox_esr | < 91.3.0 | /v1/products/mozilla/firefox_esr |
| debian:debian_linux | = 11.0, = 10.0, = 9.0 | /v1/products/debian/debian_linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports