Vulnerability · Published Dec 8, 2021 · Assigned by mozilla

CVE-2021-38504

High 8.8

In plain English

A high-severity security flaw in Firefox from Mozilla. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)8.8High
Exploit odds (30 days)1.8%top 21.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8firefox91.3.0-1.el8_4.almaALSA-2021:4123
AlmaLinux:8thunderbird91.3.0-2.el8_4.almaALSA-2021:4130
AlmaLinux:8thunderbird91.3.0-2.el8_4.alma.plusALSA-2021:4130
Alpine:v3.20firefox94.0-r0ALPINE-CVE-2021-38504
Alpine:v3.21firefox94.0-r0ALPINE-CVE-2021-38504
Alpine:v3.22firefox94.0-r0ALPINE-CVE-2021-38504
Alpine:v3.23firefox94.0-r0ALPINE-CVE-2021-38504
Alpine:v3.20firefox-esr91.3.0-r0ALPINE-CVE-2021-38504
Alpine:v3.21firefox-esr91.3.0-r0ALPINE-CVE-2021-38504
Alpine:v3.22firefox-esr91.3.0-r0ALPINE-CVE-2021-38504
Alpine:v3.23firefox-esr91.3.0-r0ALPINE-CVE-2021-38504
Alpine:v3.21librewolf94.0-r0ALPINE-CVE-2021-38504
Alpine:v3.22librewolf94.0-r0ALPINE-CVE-2021-38504
Alpine:v3.23librewolf94.0-r0ALPINE-CVE-2021-38504
Alpine:v3.24librewolf94.0-r0ALPINE-CVE-2021-38504
Alpine:v3.20thunderbird91.3.2-r0ALPINE-CVE-2021-38504
Alpine:v3.21thunderbird91.3.2-r0ALPINE-CVE-2021-38504
Alpine:v3.22thunderbird91.3.2-r0ALPINE-CVE-2021-38504
Alpine:v3.23thunderbird91.3.2-r0ALPINE-CVE-2021-38504
Debian:12firefox-esr91.3.0esr-1DEBIAN-CVE-2021-38504
Debian:13firefox-esr91.3.0esr-1DEBIAN-CVE-2021-38504
Debian:14firefox-esr91.3.0esr-1DEBIAN-CVE-2021-38504
Debian:12thunderbird1:91.3.0-1DEBIAN-CVE-2021-38504
Debian:13thunderbird1:91.3.0-1DEBIAN-CVE-2021-38504
Debian:14thunderbird1:91.3.0-1DEBIAN-CVE-2021-38504
Rocky Linux:8firefox0:91.3.0-1.el8RLSA-2021:4123
Rocky Linux:8thunderbird0:91.3.0-2.el8RLSA-2021:4130
Rocky Linux:8thunderbird0:91.3.0-2.el8_4RLSA-2021:4130
Ubuntu:22.04:LTSfirefox94.0+build3-0ubuntu1UBUNTU-CVE-2021-38504
Ubuntu:22.04:LTSmozjs78no fix listedUBUNTU-CVE-2021-38504
Ubuntu:22.04:LTSthunderbird1:91.3.1+build1-0ubuntu1UBUNTU-CVE-2021-38504

Affected products (as reported)

VendorProductVersions
Mozilla Firefox unspecified – before 94
Mozilla Thunderbird unspecified – before 91.3
Mozilla Firefox ESR unspecified – before 91.3

References