Advisory Details

July 10th, 2018

Apple Safari RegExp Exec Type Confusion Remote Code Execution Vulnerability

ZDI-18-606
ZDI-CAN-6113

CVE ID CVE-2018-4262
CVSS SCORE 6.8, AV:N/AC:M/Au:N/C:P/I:P/A:P
AFFECTED VENDORS Apple
AFFECTED PRODUCTS Safari
VULNERABILITY DETAILS


This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Apple Safari. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the handling of RegExp's exec method in JIT. By performing actions in JavaScript, an attacker can trigger a type confusion condition. An attacker can leverage this vulnerability to execute code under the context of the current process.

ADDITIONAL DETAILS Apple has issued an update to correct this vulnerability. More details can be found at:
https://support.apple.com/en-us/HT208934
DISCLOSURE TIMELINE
  • 2018-04-25 - Vulnerability reported to vendor
  • 2018-07-10 - Coordinated public release of advisory
  • 2018-07-10 - Advisory Updated
CREDIT Mateusz Krzywicki
BACK TO ADVISORIES