ZDI-26-313: Apple Safari Regular Expression Duplicate Named Groups Heap-based Buffer Overflow Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected 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 regular expression named groups. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.
Other sources
This vulnerability allows remote attackers to execute arbitrary code on affected 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 ZDI has assigned a CVSS rating of 8.8. The following CVEs are assigned: CVE-2026-28847.
— ZDI
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch ZDI-26-313 - Compensating control
Because user interaction is required (the target must visit a malicious page or open a malicious file), reduce exposure by blocking access to malicious sites and restricting opening of untrusted files in Apple Safari.
Event History
Frequently Asked Questions
What is the severity of ZDI-26-313?
The severity of ZDI-26-313 is high due to its potential for remote code execution.
How do I fix ZDI-26-313?
To fix ZDI-26-313, ensure that you are using the latest version of Apple Safari that addresses this vulnerability.
What type of vulnerability is ZDI-26-313?
ZDI-26-313 is a heap-based buffer overflow vulnerability involving regular expression duplicate named groups.
What are the risks associated with ZDI-26-313?
The risks associated with ZDI-26-313 include the potential for remote attackers to execute arbitrary code on affected systems.
Is user interaction required to exploit ZDI-26-313?
Yes, user interaction is required to exploit the ZDI-26-313 vulnerability.