cbcvebase.
CVE-2018-5159
published 2018-06-11

CVE-2018-5159: An integer overflow can occur in the Skia library due to 32-bit integer use in an array without integer overflow checks, resulting in possible out-of-bounds…

PriorityP262critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
21.29%
97.3th percentile
An integer overflow can occur in the Skia library due to 32-bit integer use in an array without integer overflow checks, resulting in possible out-of-bounds writes. This could lead to a potentially exploitable crash triggerable by web content. This vulnerability affects Thunderbird < 52.8, Thunderbird ESR < 52.8, Firefox < 60, and Firefox ESR < 52.8.

Affected

41 ranges· showing 25
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debiandebian_linux
debiandebian_linux
debiandebian_linux
debianfirefox< firefox 60.0-1 (sid)firefox 60.0-1 (sid)
debianfirefox-esr< firefox 60.0-1 (sid)firefox 60.0-1 (sid)
debianthunderbird< firefox 60.0-1 (sid)firefox 60.0-1 (sid)
mozillafirefox< 52.8.052.8.0
mozillafirefox< 60.060.0
mozillafirefox>= 0 < 60.0+build2-0ubuntu0.14.04.160.0+build2-0ubuntu0.14.04.1
mozillafirefox>= 0 < 60.0.1+build2-0ubuntu0.14.04.160.0.1+build2-0ubuntu0.14.04.1
mozillafirefox>= 0 < 60.0+build2-0ubuntu0.16.04.160.0+build2-0ubuntu0.16.04.1
mozillafirefox>= 0 < 60.0.1+build2-0ubuntu0.16.04.160.0.1+build2-0ubuntu0.16.04.1
mozillafirefox>= 0 < 60.0+build2-0ubuntu160.0+build2-0ubuntu1
mozillafirefox>= 0 < 60.0.1+build2-0ubuntu0.18.04.160.0.1+build2-0ubuntu0.18.04.1
mozillafirefox>= unspecified < 6060
mozillafirefox_esr>= unspecified < 52.852.8
mozillathunderbird< 52.8.052.8.0
mozillathunderbird>= 0 < 1:52.8.0-11:52.8.0-1
mozillathunderbird>= 0 < 1:52.8.0-11:52.8.0-1
mozillathunderbird>= 0 < 1:52.8.0-11:52.8.0-1
mozillathunderbird>= 0 < 1:52.8.0-11:52.8.0-1

Detection & IOCsextracted from sources · hover to see the quote

commandlinedasharr = [0, 1e+37]; ctx.setLineDash(linedasharr);
commandquadraticarr = [13, 68, 258, 1053, 1323, 2608, 10018, 15668, 59838, 557493, 696873, 871098, 4153813, 15845608, 48357008, 118059138, 288230353, 360287948, 562949933, 703687423, 1099511613];
  • Trigger condition involves a Canvas 2D context with setLineDash set to [0, 1e+37] (or equivalent large float) combined with a large number of quadraticCurveTo calls; monitor for JS canvas operations matching this pattern in web content.
  • The vulnerability is triggerable via web content through the HTML5 Canvas API (CanvasRenderingContext2D::quadraticCurveTo with a crafted dash pattern); look for canvas elements invoking quadraticCurveTo in a loop with large iteration counts driven by the specific quadraticarr values.
  • ·Affected versions are Firefox < 60, Firefox ESR < 52.8, Thunderbird < 52.8, and Thunderbird ESR < 52.8; detections should be scoped to these version ranges.

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.