{"schemaVersion":3,"id":"CVE-2012-5840","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2012-11-21T11:00:00.000Z","modified":"2024-08-06T21:21:26.951Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9.3,"severity":"high","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.06074,"percentile":0.93324,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.06074},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06074,"percentile":0.93324}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06074,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06074,"percentile":0.93324}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_33FAB7D11BCEC778","name":"Exploit Reference (bugzilla.mozilla.org)","source":"reference","url":"https://bugzilla.mozilla.org/show_bug.cgi?id=805287","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.04","noFixRecorded":false,"fixedIn":null},{"text":"11.10","noFixRecorded":false,"fixedIn":null},{"text":"12.04","noFixRecorded":false,"fixedIn":null},{"text":"12.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.04 | 11.10 | 12.04 | 12.10","eol":{"isEol":true,"eolDate":"2013-05-09T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10.04","label":"10.04 'Lucid Lynx' (LTS)","eolFrom":"2013-05-09T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"10.04.4"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"mozilla","product":"firefox","name":"Firefox","label":"firefox","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 10.0.11","noFixRecorded":false,"fixedIn":null},{"text":"< 17.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.0.11 | < 17.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"firefox","label":"Firefox","category":"app"}},"hubHref":"/vendor/mozilla/firefox"},{"vendor":"mozilla","product":"seamonkey","name":"seamonkey","label":"seamonkey","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.14","eol":null,"hubHref":"/vendor/mozilla/seamonkey"},{"vendor":"mozilla","product":"thunderbird","name":"Thunderbird","label":"thunderbird","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 17.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 17.0","eol":null,"hubHref":"/vendor/mozilla/thunderbird"},{"vendor":"mozilla","product":"thunderbird_esr","name":"thunderbird esr","label":"thunderbird_esr","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 10.0.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.0.11","eol":null,"hubHref":"/vendor/mozilla/thunderbird_esr"},{"vendor":"opensuse","product":"opensuse","name":"opensuse","label":"opensuse","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"11.4","noFixRecorded":false,"fixedIn":null},{"text":"12.1","noFixRecorded":false,"fixedIn":null},{"text":"12.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"11.4 | 12.1 | 12.2","eol":{"isEol":true,"eolDate":"2012-11-05T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"11.4","label":"11.4","eolFrom":"2012-11-05T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/opensuse"},{"vendor":"redhat","product":"enterprise_linux_desktop","name":"enterprise linux desktop","label":"enterprise_linux_desktop","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"5.0","noFixRecorded":false,"fixedIn":null},{"text":"6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.0 | 6.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_desktop"},{"vendor":"redhat","product":"enterprise_linux_eus","name":"enterprise linux eus","label":"enterprise_linux_eus","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"6.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.3","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_eus"},{"vendor":"redhat","product":"enterprise_linux_server","name":"enterprise linux server","label":"enterprise_linux_server","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"5.0","noFixRecorded":false,"fixedIn":null},{"text":"6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.0 | 6.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_server"},{"vendor":"redhat","product":"enterprise_linux_workstation","name":"enterprise linux workstation","label":"enterprise_linux_workstation","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"5.0","noFixRecorded":false,"fixedIn":null},{"text":"6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.0 | 6.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_workstation"},{"vendor":"suse","product":"linux_enterprise_desktop","name":"linux enterprise desktop","label":"linux_enterprise_desktop","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10:sp4","noFixRecorded":false,"fixedIn":null},{"text":"11:sp2","noFixRecorded":false,"fixedIn":null}],"versionsText":"10:sp4 | 11:sp2","eol":null,"hubHref":"/vendor/suse/linux_enterprise_desktop"},{"vendor":"suse","product":"linux_enterprise_server","name":"linux enterprise server","label":"linux_enterprise_server","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10:sp4","noFixRecorded":false,"fixedIn":null},{"text":"11:sp2","noFixRecorded":false,"fixedIn":null}],"versionsText":"10:sp4 | 11:sp2","eol":null,"hubHref":"/vendor/suse/linux_enterprise_server"},{"vendor":"suse","product":"linux_enterprise_software_development_kit","name":"linux enterprise software development kit","label":"linux_enterprise_software_development_kit","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10:sp4","noFixRecorded":false,"fixedIn":null},{"text":"11:sp2","noFixRecorded":false,"fixedIn":null}],"versionsText":"10:sp4 | 11:sp2","eol":null,"hubHref":"/vendor/suse/linux_enterprise_software_development_kit"}],"affectedCount":13,"eol":{"hasEol":true,"count":2},"references":[{"url":"http://www.ubuntu.com/usn/USN-1638-3","label":"www.ubuntu.com/usn/USN-1638-3","hostname":"www.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A16904","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A16904","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL","Third Party Advisory"]},{"url":"http://secunia.com/advisories/51370","label":"secunia.com/advisories/51370","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://osvdb.org/87606","label":"osvdb.org/87606","hostname":"osvdb.org","tags":["VDB Entry","X Refsource OSVDB","Broken Link","Third Party Advisory"]},{"url":"http://www.ubuntu.com/usn/USN-1638-2","label":"www.ubuntu.com/usn/USN-1638-2","hostname":"www.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-updates/2012-11/msg00093.html","label":"lists.opensuse.org/opensuse-updates/2012-11/msg00093.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://www.ubuntu.com/usn/USN-1636-1","label":"www.ubuntu.com/usn/USN-1636-1","hostname":"www.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2013-01/msg00022.html","label":"lists.opensuse.org/opensuse-security-announce/2013-01/msg00022.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-1483.html","label":"rhn.redhat.com/errata/RHSA-2012-1483.html","hostname":"rhn.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/80190","label":"exchange.xforce.ibmcloud.com/vulnerabilities/80190","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF","Third Party Advisory"]},{"url":"http://www.palemoon.org/releasenotes-ng.shtml","label":"www.palemoon.org/releasenotes-ng.shtml","hostname":"www.palemoon.org","tags":["X Refsource CONFIRM","Broken Link"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-1482.html","label":"rhn.redhat.com/errata/RHSA-2012-1482.html","hostname":"rhn.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory"]},{"url":"http://secunia.com/advisories/51434","label":"secunia.com/advisories/51434","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://lists.opensuse.org/opensuse-updates/2012-11/msg00090.html","label":"lists.opensuse.org/opensuse-updates/2012-11/msg00090.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://secunia.com/advisories/51439","label":"secunia.com/advisories/51439","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://secunia.com/advisories/51440","label":"secunia.com/advisories/51440","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://www.ubuntu.com/usn/USN-1638-1","label":"www.ubuntu.com/usn/USN-1638-1","hostname":"www.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-11/msg00021.html","label":"lists.opensuse.org/opensuse-security-announce/2012-11/msg00021.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://secunia.com/advisories/51359","label":"secunia.com/advisories/51359","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:173","label":"www.mandriva.com/security/advisories?name=MDVSA-2012:173","hostname":"www.mandriva.com","tags":["Vendor Advisory","X Refsource MANDRIVA","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-updates/2012-11/msg00092.html","label":"lists.opensuse.org/opensuse-updates/2012-11/msg00092.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=805287","label":"bugzilla.mozilla.org/show_bug.cgi?id=805287","hostname":"bugzilla.mozilla.org","tags":["X Refsource CONFIRM","Exploit","Issue Tracking","Patch","Vendor Advisory"]},{"url":"http://secunia.com/advisories/51381","label":"secunia.com/advisories/51381","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://www.securityfocus.com/bid/56635","label":"www.securityfocus.com/bid/56635","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"http://secunia.com/advisories/51369","label":"secunia.com/advisories/51369","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://www.mozilla.org/security/announce/2012/mfsa2012-105.html","label":"www.mozilla.org/security/announce/2012/mfsa2012-105.html","hostname":"www.mozilla.org","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"http://secunia.com/advisories/51360","label":"secunia.com/advisories/51360","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:10071-1","OPENSUSE-SU-2024:10230-1","RHSA-2012:1482","RHSA-2012:1483"],"duplicates":[],"related":["OPENSUSE-SU-2024:10071-1","OPENSUSE-SU-2024:10230-1"]},"timeline":[{"kind":"published","date":"2012-11-21T11:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T21:21:26.951Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:00:14.418Z","stale":false,"partial":false}}