CVE-2016-1960

high
Published 2016-03-13 ยท Modified 2026-05-06
CVSS v3
8.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
9.8

Description

Integer underflow in the nsHtml5TreeBuilder class in the HTML5 string parser in Mozilla Firefox before 45.0 and Firefox ESR 38.x before 38.7 allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free) by leveraging mishandling of end tags, as demonstrated by incorrect SVG processing, aka ZDI-CAN-3545.

Predictions

Exploit likelihood
100%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-42484 remote windows
Hans Jerry Illikainen ยท 2017-08-18

Mozilla Firefox < 45.0 - 'nsHtml5TreeBuilder' Use-After-Free (EMET 5.52 Bypass)

Source code queued for fetch โ€” refresh in a moment.
EDB-44294 remote windows verified
Rh0 ยท 2018-03-16

Firefox 44.0.2 - ASM.JS JIT-Spray Remote Code Execution

Source code queued for fetch โ€” refresh in a moment.

OS impact

suse SUSE Affected 3 releases
VersionStatusFixed in
42.1 Affected โ€”
13.2 Affected โ€”
13.1 Affected โ€”
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 45.0esr-1
sid Fixed 45.0-1
forky Fixed 45.0esr-1
bullseye Fixed 45.0esr-1
bookworm Fixed 45.0esr-1

Application impact

VendorProductVersionsFixed
mozilla mozillafirefox{"endIncluding":"44.0.2"}
mozilla mozillafirefox38.0
mozilla mozillafirefox38.0.1
mozilla mozillafirefox38.0.5
mozilla mozillafirefox38.1.0
mozilla mozillafirefox38.1.1
mozilla mozillafirefox38.2.0
mozilla mozillafirefox38.2.1
mozilla mozillafirefox38.3.0
mozilla mozillafirefox38.4.0
mozilla mozillafirefox38.5.0
mozilla mozillafirefox38.5.1
mozilla mozillafirefox38.6.0
mozilla mozillafirefox38.6.1
mozilla mozillathunderbird{"endIncluding":"38.6.0"}

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.