Skip to main content
Public proof of conceptFix available

CVE-2021-4140

A public proof of concept exists; no exploitation attested.

  • Published2022-12-22
  • Fixed in96.0
  • WeaknessCWE-91

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

It was possible to construct specific XSLT markup that would be able to bypass an iframe sandbox. This vulnerability affects Firefox ESR < 91.5, Firefox < 96, and Thunderbird < 91.5.

Timeline

dates in UTC
  1. 2022-12-2220:15CVE publishedNVD

Versions per branch

NVD
Mozilla firefox
BranchAffectedFixed in
96.0< 96.096.0
Mozilla firefox esr
BranchAffectedFixed in
91.5< 91.591.5
Mozilla thunderbird
BranchAffectedFixed in
91.5< 91.591.5

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA3 products

As mozilla, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Mozilla Firefox ESR
    Affected
    • < 91.5fixed in 91.5custom
  • Mozilla Firefox
    Affected
    • < 96fixed in 96custom
  • Mozilla Thunderbird
    Affected
    • < 91.5fixed in 91.5custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-12-22

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • civetwebopenSUSE:Leap 15.3all versions · fixed in 1.15-lp153.2.3.1
  • firefoxUbuntu:22.04:LTSall versions · fixed in 96.0+build2-0ubuntu1
  • firefoxUbuntu:20.04:LTSall versions · fixed in 96.0+build2-0ubuntu0.20.04.1
  • firefoxUbuntu:18.04:LTSall versions · fixed in 96.0+build2-0ubuntu0.18.04.1
  • firefoxRocky Linux:8all versions · fixed in 0:91.5.0-1.el8_5and 1 other package
  • firefoxRed Hat:rhel_eus:8.4::appstreamall versions · fixed in 0:91.5.0-1.el8_4and 5 other packages
  • firefoxRed Hat:rhel_eus:8.2::appstreamall versions · fixed in 0:91.5.0-1.el8_2and 5 other packages
  • firefoxRed Hat:rhel_e4s:8.1::appstreamall versions · fixed in 0:91.5.0-1.el8_1and 5 other packages

91 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-4140 Red Hat Product Security118 products fixed · 4 known affected

    Mozilla: Iframe sandbox bypass with XSLT

    firefox as a component of Red Hat Enterprise Linux 6 · firefox.src as a component of Red Hat Enterprise Linux 6 · thunderbird as a component of Red Hat Enterprise Linux 6 · +1 more

  • RHSA-2022:0127 Red Hat Product Security11 products fixed

    Red Hat Security Advisory: thunderbird security update

  • RHSA-2022:0124 Red Hat Product Security18 products fixed

    Red Hat Security Advisory: firefox security update

  • RHSA-2022:0129 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: thunderbird security update

  • RHSA-2022:0128 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: thunderbird security update

  • RHSA-2022:0132 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: firefox security update

5 more advisories

Full record on NVD

Fix

  1. Update Mozilla firefox to 96.0
  2. Vendor fix Red Hat Product Security RHSA-2022:0127 · 11 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 All running instances of Thunderbird must be restarted for the update to take effect.
  3. Vendor fix Red Hat Product Security RHSA-2022:0124 · 18 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing the update, Firefox must be restarted for the changes to take effect.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
2022-12-22
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-h5mr-xp97-c4p5

Frequently asked questions

What is CVE-2021-4140?

It was possible to construct specific XSLT markup that would be able to bypass an iframe sandbox. This vulnerability affects Firefox ESR < 91.5, Firefox < 96, and Thunderbird < 91.5.

Is CVE-2021-4140 actively exploited?

A proof-of-concept exploit exists for CVE-2021-4140, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2021-4140?

CVE-2021-4140 has a CVSS v3 base score of 10 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.

Running Mozilla? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record