Home / Mozilla / Firefox / CVE-2012-5840
CVE-2012-5840: is it exploited, and which versions of Mozilla Firefox are affected and fixed?
CVE-2012-5840 is an use after free vulnerability in Mozilla Firefox. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:08 UTC). Affected: firefox before 10.0.11, firefox before 17.0, seamonkey before 2.14 and 22 more (NVD). Fixed in 10.0.11, 17.0 and 2.14 (NVD). Severity: High (9.3, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:08 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:48 UTC.
What is CVE-2012-5840?
Use-after-free vulnerability in the nsTextEditorState::PrepareEditor function in Mozilla Firefox before 17.0, Firefox ESR 10.x before 10.0.11, Thunderbird before 17.0, Thunderbird ESR 10.x before 10.0.11, and SeaMonkey before 2.14 allows remote attackers to execute arbitrary code or cause a denial of service (heap memory corruption) via unspecified vectors, a different vulnerability than CVE-2012-4214.
From the CVE record by mitre, last updated August 6, 2024, 21:21 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| mozilla | firefox | before 10.0.11 | application |
| mozilla | firefox | before 17.0 | application |
| mozilla | seamonkey | before 2.14 | application |
| mozilla | thunderbird | before 17.0 | application |
| mozilla | thunderbird esr | before 10.0.11 | application |
| opensuse | opensuse | 11.4 | operating system |
| opensuse | opensuse | 12.1 | operating system |
| opensuse | opensuse | 12.2 | operating system |
| suse | linux enterprise desktop | 10 | operating system |
| suse | linux enterprise desktop | 11 | operating system |
| suse | linux enterprise server | 10 | operating system |
| suse | linux enterprise server | 11 | operating system |
| suse | linux enterprise software development kit | 10 | operating system |
| suse | linux enterprise software development kit | 11 | operating system |
| canonical | ubuntu linux | 10.04 | operating system |
| canonical | ubuntu linux | 11.10 | operating system |
| canonical | ubuntu linux | 12.04 | operating system |
| canonical | ubuntu linux | 12.10 | operating system |
| redhat | enterprise linux desktop | 5.0 | operating system |
| redhat | enterprise linux desktop | 6.0 | operating system |
| redhat | enterprise linux eus | 6.3 | operating system |
| redhat | enterprise linux server | 5.0 | operating system |
| redhat | enterprise linux server | 6.0 | operating system |
| redhat | enterprise linux workstation | 5.0 | operating system |
| redhat | enterprise linux workstation | 6.0 | operating system |
NVD analysis (status Modified), last modified June 16, 2026, 23:47 UTC.
How severe is CVE-2012-5840?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 9.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-5840 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 6.07% probability of exploitation activity in the next 30 days, percentile 93.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-416 Use After Free
Where are the vendor advisories and references?
- USN-1638-3 vendor-advisory, x_refsource_UBUNTU
- oval:org.mitre.oval:def:16904 vdb-entry, signature, x_refsource_OVAL
- 51370 third-party-advisory, x_refsource_SECUNIA
- 87606 vdb-entry, x_refsource_OSVDB
- USN-1638-2 vendor-advisory, x_refsource_UBUNTU
- openSUSE-SU-2012:1586 vendor-advisory, x_refsource_SUSE
- USN-1636-1 vendor-advisory, x_refsource_UBUNTU
- openSUSE-SU-2013:0175 vendor-advisory, x_refsource_SUSE
- RHSA-2012:1483 vendor-advisory, x_refsource_REDHAT
- mozilla-prepareeditor-code-exec(80190) vdb-entry, x_refsource_XF
- http://www.palemoon.org/releasenotes-ng.shtml x_refsource_CONFIRM
- RHSA-2012:1482 vendor-advisory, x_refsource_REDHAT
- 51434 third-party-advisory, x_refsource_SECUNIA
- openSUSE-SU-2012:1583 vendor-advisory, x_refsource_SUSE
- 51439 third-party-advisory, x_refsource_SECUNIA
- 51440 third-party-advisory, x_refsource_SECUNIA
- USN-1638-1 vendor-advisory, x_refsource_UBUNTU
- SUSE-SU-2012:1592 vendor-advisory, x_refsource_SUSE
- 51359 third-party-advisory, x_refsource_SECUNIA
- MDVSA-2012:173 vendor-advisory, x_refsource_MANDRIVA
- openSUSE-SU-2012:1585 vendor-advisory, x_refsource_SUSE
- https://bugzilla.mozilla.org/show_bug.cgi?id=805287 x_refsource_CONFIRM
- 51381 third-party-advisory, x_refsource_SECUNIA
- 56635 vdb-entry, x_refsource_BID
- 51369 third-party-advisory, x_refsource_SECUNIA
- http://www.mozilla.org/security/announce/2012/mfsa2012-105.html x_refsource_CONFIRM
- 51360 third-party-advisory, x_refsource_SECUNIA
When was it published, and where is the official record?
- Reserved
- November 5, 2012
- Published
- November 21, 2012, 11:00 UTC
- CVE record updated
- August 6, 2024, 21:21 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 23:47 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:48 UTC; KEV December 3, 2026, 08:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Firefox?
- Oct 9, 2024CVE-2024-9680 Mozilla Firefox: use after free exploited
- Dec 22, 2022CVE-2022-26486 Mozilla Firefox: use after free exploited
- Dec 22, 2022CVE-2022-26485 Mozilla Firefox: use after free exploited
- Apr 24, 2020CVE-2020-6819 Mozilla Thunderbird: race condition exploited
- Apr 24, 2020CVE-2020-6820 Mozilla Thunderbird: race condition exploited
- Mar 2, 2020CVE-2019-17026 Mozilla Firefox ESR: type confusion exploited
- Jul 23, 2019CVE-2019-11707 Mozilla Firefox ESR: type confusion exploited
- Jul 23, 2019CVE-2019-11708 Mozilla Firefox ESR: improper input validation exploited
Questions about CVE-2012-5840
Is CVE-2012-5840 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:08 UTC. FIRST's EPSS gives it a 6.07% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Mozilla Firefox are affected by CVE-2012-5840?
firefox before 10.0.11, firefox before 17.0, seamonkey before 2.14, thunderbird before 17.0, thunderbird esr before 10.0.11, opensuse 11.4 and 19 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2012-5840?
10.0.11, 17.0 and 2.14, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2012-5840?
High (9.3, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-5840?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.