CVE-2018-5002 — Adobe Flash Player Stack-based Buffer Overflow Vulnerability

CVE-2018-5002

Flash Player Zero-Day Delivered via Weaponized Excel Documents in a Middle East-Targeted Campaign

What is Adobe Flash Player?

Adobe Flash Player was, for years, a near-universal browser plugin used to run interactive animations, ads, and embedded multimedia content, and it could also be embedded directly inside Microsoft Office documents via ActiveX. That Office-embedding capability made Flash a favored delivery mechanism for targeted attacks: a malicious Flash object hidden inside a seemingly ordinary Excel or Word document could execute exploit code the moment the document was opened, without the victim needing to visit any website.

Overview

CVE-2018-5002 is a stack-based buffer overflow vulnerability in Adobe Flash Player that was exploited as a zero-day in a targeted attack campaign before a patch was available. The exploit was delivered embedded inside a malicious Microsoft Excel spreadsheet — when the victim opened the document, the embedded Flash content triggered the overflow, allowing the attacker to execute arbitrary code with the privileges of the user who opened the file.

Technical Details

The vulnerability is a stack-based buffer overflow (CWE-787, out-of-bounds write): a component of Flash Player's ActionScript/media processing engine writes attacker-controlled data past the bounds of a fixed-size stack buffer, corrupting adjacent stack memory including saved return addresses. A carefully crafted overflow of this kind lets an attacker redirect program execution to attacker-supplied code, achieving arbitrary code execution. Because the exploit was embedded in an Office document rather than served from a webpage, it required only that the victim open the file — no browser visit or additional interaction was needed once the document was opened.

Discovery

The in-the-wild zero-day exploitation of this vulnerability was identified by security researchers at ICEBRG, who discovered a suspicious Flash object embedded in an Excel document (uploaded to a public malware-scanning service from the Middle East region) in mid-2018. Their analysis and public disclosure of the exploit sample preceded Adobe's official patch, and the campaign was assessed to be a targeted operation rather than broad, opportunistic exploitation.

Exploitation Context

This vulnerability was used in a narrowly targeted attack before being patched, consistent with the pattern of Flash zero-days being reserved for higher-value espionage or targeted intrusion operations rather than mass commodity exploitation. CISA's KEV catalog listing confirms exploitation activity has been observed, and the vulnerability's continued relevance years later reflects how long unpatched, end-of-life Flash installations have persisted in the field.

Remediation

  1. Uninstall Adobe Flash Player entirely — it reached end-of-life in December 2020 and Adobe actively blocks Flash content from running; no further updates will be issued.
  2. Disable Flash/ActiveX content execution within Microsoft Office applications via Group Policy or the Trust Center, since this exploit was delivered specifically through an embedded Office document.
  3. Educate users on the risk of enabling embedded content or "Enable Editing/Enable Content" prompts in unsolicited Office documents from external senders.
  4. Remove or isolate any remaining legacy systems that still require Flash Player for business-critical functions.
  5. Deploy email and document-scanning gateways capable of detecting embedded Flash/ActiveX objects in Office file attachments as a compensating control where full Flash removal is not yet complete.

Key Details

PropertyValue
CVE ID CVE-2018-5002
Vendor / Product Adobe — Flash Player
NVD Published2018-07-09
NVD Last Modified2025-11-18
CVSS 3.1 Score7.8
CVSS 3.1 VectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-787 find similar ↗
CISA KEV Added2022-05-23
CISA KEV Deadline2022-06-13
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-06-13. The impacted product is end-of-life and should be disconnected if still in use.

Timeline

DateEvent
2018-06Security researchers identify a malicious Flash object embedded in a weaponized Excel document uploaded from the Middle East, exploiting this flaw as a zero-day
2018-07-09Adobe patches the vulnerability and the CVE is published
2022-05-23Added to CISA Known Exploited Vulnerabilities catalog
2022-06-13CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2018-5002 Vulnerability Database
CISA KEV Catalog Entry US Government