cve.bz

CVE-2021-38504 Use After Free

8.8 highEPSS 1.8%

High (8.8). EPSS 1.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-38504 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-38504?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-38504?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-38504 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Mozilla Firefoxbefore 94
Mozilla Thunderbirdbefore 91.3
Mozilla Firefox ESRbefore 91.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9firefox-esr91.4.1esr-1~deb9u1DLA-2863-1
Debian9thunderbird1:91.4.1-1~deb9u1DLA-2874-1
Debian10thunderbird1:91.4.1-1~deb10u1DSA-5034-1
Debian11firefox-esr91.4.1esr-1~deb11u1DSA-5026-1
Debian11thunderbird1:91.4.1-1~deb11u1DSA-5034-1
Debian12, 13, 14firefox-esr91.3.0esr-1DEBIAN-CVE-2021-38504
Debian12, 13, 14thunderbird1:91.3.0-1DEBIAN-CVE-2021-38504
Ubuntu18.04:LTSfirefox94.0+build3-0ubuntu0.18.04.1UBUNTU-CVE-2021-38504 USN-5131-1
Ubuntu18.04:LTSmozjs38, mozjs52no fix listedUBUNTU-CVE-2021-38504
Ubuntu18.04:LTSthunderbird1:91.5.0+build1-0ubuntu0.18.04.1UBUNTU-CVE-2021-38504 USN-5248-1
Ubuntu20.04:LTSfirefox94.0+build3-0ubuntu0.20.04.1UBUNTU-CVE-2021-38504 USN-5131-1
Ubuntu20.04:LTSmozjs52, mozjs68no fix listedUBUNTU-CVE-2021-38504
Ubuntu20.04:LTSthunderbird1:91.5.0+build1-0ubuntu0.20.04.1UBUNTU-CVE-2021-38504 USN-5248-1
Ubuntu22.04:LTSfirefox94.0+build3-0ubuntu1UBUNTU-CVE-2021-38504
Ubuntu22.04:LTSmozjs78no fix listedUBUNTU-CVE-2021-38504
Ubuntu22.04:LTSthunderbird1:91.3.1+build1-0ubuntu1UBUNTU-CVE-2021-38504
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationfirefox, firefox-debuginfo0:91.3.0-1.el7_9RHSA-2021:4116
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationthunderbird, thunderbird-debuginfo0:91.3.0-2.el7_9RHSA-2021:4134
Red Hatenterprise_linux:8::appstreamfirefox, firefox-debuginfo, firefox-debugsource0:91.3.0-1.el8_4RHSA-2021:4123
Red Hatenterprise_linux:8::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:91.3.0-2.el8_4RHSA-2021:4130
Red Hatrhel_eus:8.1::appstreamfirefox, firefox-debuginfo, firefox-debugsource0:91.3.0-1.el8_1RHSA-2021:4607
Red Hatrhel_eus:8.1::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:91.3.0-2.el8_1RHSA-2021:4133
Red Hatrhel_eus:8.2::appstreamfirefox, firefox-debuginfo, firefox-debugsource0:91.3.0-1.el8_2RHSA-2021:4605
Red Hatrhel_eus:8.2::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:91.3.0-2.el8_2RHSA-2021:4132
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moreMozillaFirefox91.3.0-150.6.1SUSE-SU-2021:3651-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 moreMozillaFirefox91.3.0-112.80.2SUSE-SU-2021:3721-1
SUSELinux Enterprise Module for Desktop Applications 15 SP2, Linux Enterprise Module for Desktop Applications 15 SP3MozillaFirefox91.3.0-152.6.1SUSE-SU-2021:3745-1
SUSELinux Enterprise Workstation Extension 15 SP2, Linux Enterprise Workstation Extension 15 SP3MozillaThunderbird91.4.0-8.45.2SUSE-SU-2021:4150-1
openSUSELeap 15.2MozillaThunderbird91.4.0-lp152.2.52.1openSUSE-SU-2021:1635-1
openSUSELeap 15.3MozillaFirefox91.3.0-152.6.1openSUSE-SU-2021:3745-1
openSUSELeap 15.3MozillaThunderbird91.4.0-8.45.2openSUSE-SU-2021:4150-1
openSUSETumbleweedMozillaFirefox94.0.1-1.1openSUSE-SU-2024:11614-1
openSUSETumbleweedMozillaThunderbird91.3.0-1.1openSUSE-SU-2024:11607-1
openSUSETumbleweedfirefox-esr128.5.1-1.1openSUSE-SU-2024:14572-1
AlmaLinux8firefox91.3.0-1.el8_4.almaALSA-2021:4123
AlmaLinux8thunderbird91.3.0-2.el8_4.almaALSA-2021:4130
AlmaLinux8thunderbird91.3.0-2.el8_4.alma.plusALSA-2021:4130
Rocky Linux8firefox0:91.3.0-1.el8RLSA-2021:4123
Rocky Linux8thunderbird0:91.3.0-2.el8RLSA-2021:4130
Rocky Linux8thunderbird0:91.3.0-2.el8_4RLSA-2021:4130
Alpinev3.15, v3.16, v3.17 and 3 morefirefox94.0-r0ALPINE-CVE-2021-38504
Alpinev3.15, v3.16, v3.17 and 6 morefirefox-esr91.3.0-r0ALPINE-CVE-2021-38504
Alpinev3.16, v3.17, v3.18 and 5 morethunderbird91.3.2-r0ALPINE-CVE-2021-38504
Alpinev3.21, v3.22, v3.23firefox, librewolf94.0-r0ALPINE-CVE-2021-38504
Alpinev3.24librewolf94.0-r0ALPINE-CVE-2021-38504

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7firefox-0:91.3.0-1.el7_9Fixed 2021-11-03RHSA-2021:4116
Red Hat Enterprise Linux 7thunderbird-0:91.3.0-2.el7_9Fixed 2021-11-04RHSA-2021:4134
Red Hat Enterprise Linux 8firefox-0:91.3.0-1.el8_4Fixed 2021-11-03RHSA-2021:4123
Red Hat Enterprise Linux 8thunderbird-0:91.3.0-2.el8_4Fixed 2021-11-04RHSA-2021:4130
Red Hat Enterprise Linux 8.1 Extended Update Supportthunderbird-0:91.3.0-2.el8_1Fixed 2021-11-04RHSA-2021:4133
Red Hat Enterprise Linux 8.1 Extended Update Supportfirefox-0:91.3.0-1.el8_1Fixed 2021-11-10RHSA-2021:4607
Red Hat Enterprise Linux 8.2 Extended Update Supportthunderbird-0:91.3.0-2.el8_2Fixed 2021-11-04RHSA-2021:4132
Red Hat Enterprise Linux 8.2 Extended Update Supportfirefox-0:91.3.0-1.el8_2Fixed 2021-11-10RHSA-2021:4605
Red Hat Enterprise Linux 6firefoxOut of support scope
Red Hat Enterprise Linux 6thunderbirdOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-38504.

References

Check your stackJSON