Every CVE Search/ Get API key

CVE-2012-5840

Use-after-free vulnerability in the nsTextEditorState::PrepareEditor function in Mozilla Firefox...

9.3 HighFix available

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.

Exploit likelihood

6.07%Down 0.5 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.3

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.

Record
CVE-2012-5840
CVSS 2.0
9.3 HighAV:N/AC:M/Au:N/C:C/I:C/A:C
Weakness
CWE-416
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2012-5840
Updated
2026-11-02
EUVDEUVD-2012-5718 No score

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.

Record
EUVD-2012-5718
Updated
2026-11-03
GitHub AdvisoriesGHSA-3355-xw7j-q4q7 No score

Use-after-free vulnerability in the nsTextEditorState::PrepareEditor function in Mozilla Firefox...

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.

Record
GHSA-3355-xw7j-q4q7
Weakness
CWE-416
Updated
2026-11-02
OSVopenSUSE-SU-2024:10071-1 No score

MozillaFirefox-50.1.0-1.1 on GA media

These are all security issues fixed in the MozillaFirefox-50.1.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10071-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10218-1 No score

seamonkey-2.40-6.1 on GA media

These are all security issues fixed in the seamonkey-2.40-6.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10218-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10230-1 No score

MozillaThunderbird-45.5.1-1.1 on GA media

These are all security issues fixed in the MozillaThunderbird-45.5.1-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10230-1
Updated
2026-11-02

Affected products

Show 1 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
firefox
Red Hat:enterprise_linux:5::client
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
firefox-debuginfo
Red Hat:enterprise_linux:5::client
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
xulrunner
Red Hat:enterprise_linux:5::client
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
xulrunner-debuginfo
Red Hat:enterprise_linux:5::client
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
xulrunner
Red Hat:enterprise_linux:5::client_workstation
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
xulrunner-debuginfo
Red Hat:enterprise_linux:5::client_workstation
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
xulrunner-devel
Red Hat:enterprise_linux:5::client_workstation
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
firefox
Red Hat:enterprise_linux:5::server
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
firefox-debuginfo
Red Hat:enterprise_linux:5::server
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
xulrunner
Red Hat:enterprise_linux:5::server
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
Show 34 moreShow less
Affected packages
PackageAffectedFixed
xulrunner-debuginfo
Red Hat:enterprise_linux:5::server
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
xulrunner-devel
Red Hat:enterprise_linux:5::server
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
firefox
Red Hat:enterprise_linux:6::client
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
firefox-debuginfo
Red Hat:enterprise_linux:6::client
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner
Red Hat:enterprise_linux:6::client
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner-debuginfo
Red Hat:enterprise_linux:6::client
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner-devel
Red Hat:enterprise_linux:6::client
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
firefox
Red Hat:enterprise_linux:6::computenode
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
firefox-debuginfo
Red Hat:enterprise_linux:6::computenode
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner
Red Hat:enterprise_linux:6::computenode
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner-debuginfo
Red Hat:enterprise_linux:6::computenode
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner-devel
Red Hat:enterprise_linux:6::computenode
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
firefox
Red Hat:enterprise_linux:6::server
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
firefox-debuginfo
Red Hat:enterprise_linux:6::server
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner
Red Hat:enterprise_linux:6::server
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner-debuginfo
Red Hat:enterprise_linux:6::server
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner-devel
Red Hat:enterprise_linux:6::server
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
firefox
Red Hat:enterprise_linux:6::workstation
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
firefox-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner
Red Hat:enterprise_linux:6::workstation
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
xulrunner-devel
Red Hat:enterprise_linux:6::workstation
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
thunderbird
Red Hat:enterprise_linux:5::client
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
thunderbird-debuginfo
Red Hat:enterprise_linux:5::client
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
thunderbird
Red Hat:rhel_productivity:5
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
thunderbird-debuginfo
Red Hat:rhel_productivity:5
before 0:10.0.11-1.el5_8
0:10.0.11-1.el5_8
thunderbird
Red Hat:enterprise_linux:6::client
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
thunderbird-debuginfo
Red Hat:enterprise_linux:6::client
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
thunderbird
Red Hat:enterprise_linux:6::server
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
thunderbird-debuginfo
Red Hat:enterprise_linux:6::server
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
thunderbird
Red Hat:enterprise_linux:6::workstation
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
thunderbird-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:10.0.11-1.el6_3
0:10.0.11-1.el6_3
MozillaFirefox
openSUSE:Tumbleweed
before 50.1.0-1.1
50.1.0-1.1
MozillaThunderbird
openSUSE:Tumbleweed
before 45.5.1-1.1
45.5.1-1.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2012-5840 is a high vulnerability (CVSS 9.3) in Mozilla Firefox, published November 21, 2012. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 6.07%, the 93rd percentile. Fixed in firefox 0:10.0.11-1.el5_8.

References

Show 194 moreShow less
This page doesn't list everything

Left out here: 842 references. The JSON record has them.

MoveEnter Open