cbcvebase.
CVE-2017-5404
published 2018-06-11

CVE-2017-5404: A use-after-free error can occur when manipulating ranges in selections with one node inside a native anonymous tree and one node outside of it. This results…

PriorityP260critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
17.48%
96.8th percentile
A use-after-free error can occur when manipulating ranges in selections with one node inside a native anonymous tree and one node outside of it. This results in a potentially exploitable crash. This vulnerability affects Firefox < 52, Firefox ESR < 45.8, Thunderbird < 52, and Thunderbird < 45.8.

Affected

33 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianfirefox< firefox 52.0-1 (sid)firefox 52.0-1 (sid)
debianfirefox-esr< firefox 52.0-1 (sid)firefox 52.0-1 (sid)
mozillafirefox< 52.052.0
mozillafirefox< 45.8.045.8.0
mozillafirefox>= 0 < 52.0+build2-0ubuntu0.14.04.152.0+build2-0ubuntu0.14.04.1
mozillafirefox>= 0 < 52.0.2+build1-0ubuntu0.14.04.152.0.2+build1-0ubuntu0.14.04.1
mozillafirefox>= 0 < 52.0+build2-0ubuntu0.16.04.152.0+build2-0ubuntu0.16.04.1
mozillafirefox>= 0 < 52.0.2+build1-0ubuntu0.16.04.152.0.2+build1-0ubuntu0.16.04.1
mozillafirefox>= unspecified < 5252
mozillafirefox_esr>= unspecified < 45.845.8
mozillathunderbird< 45.8.045.8.0
mozillathunderbird>= 0 < 1:45.8.0+build1-0ubuntu0.14.04.11:45.8.0+build1-0ubuntu0.14.04.1
mozillathunderbird>= 0 < 1:45.8.0+build1-0ubuntu0.16.04.11:45.8.0+build1-0ubuntu0.16.04.1
mozillathunderbird>= unspecified < 5252
mozillathunderbird>= unspecified < 45.845.8
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux_desktop
redhatenterprise_linux_desktop
redhatenterprise_linux_desktop
redhatenterprise_linux_server
redhatenterprise_linux_server
redhatenterprise_linux_server

Detection & IOCsextracted from sources · hover to see the quote

commands.modify("extend","forward","line")
commanddocument.body.append(document.createElement("table"))
commandfuzzPriv.forceGC()
  • Exploit triggers use-after-free via Selection.modify('extend','forward','line') followed by appending a 'table' element and forcing garbage collection — monitor for this JS pattern in browser content
  • Crash originates in nsRange::CloneRange() called from nsHTMLCopyEncoder::SetSelection() — look for UAF crash signatures in Firefox/Thunderbird involving nsRange and Selection manipulation
  • ·Affected versions are Firefox < 52, Firefox ESR < 45.8, Thunderbird < 52, and Thunderbird < 45.8; patched versions are not vulnerable
  • ·The PoC exploit requires domFuzzLite3 extension to be installed for the forceGC() call to succeed; without it the GC step fails gracefully

CVSS provenance

nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.