CVE-2012-5054 — Adobe Flash Player Integer Overflow Vulnerability

CVE-2012-5054

Adobe Flash Player — Matrix3D Integer Overflow Enables Remote Code Execution via Malformed Flash Arguments

What is Adobe Flash Player?

Adobe Flash Player was a ubiquitous browser plugin and document component that enabled rich multimedia across virtually every platform. Flash supported complex 3D graphics via the Stage3D API introduced in Flash Player 11, which included Matrix3D and other transformation objects. The addition of new capabilities introduced new attack surface, and the Matrix3D implementation became the source of integer overflow vulnerabilities. Adobe discontinued Flash Player on December 31, 2020.

Overview

CVE-2012-5054 is an integer overflow vulnerability (CWE-190) in Adobe Flash Player's handling of Flash content with malformed arguments. An integer overflow in the processing of Matrix3D object arguments causes Flash Player to allocate an undersized buffer, enabling a subsequent heap buffer overflow that leads to arbitrary code execution. Adobe patched this in Security Bulletin APSB12-22 on September 21, 2012.

Affected Versions

Component Vulnerable Versions Fixed Version
Adobe Flash Player (Windows, Mac) 11.4.402.265 and earlier 11.4.402.287
Adobe Flash Player (Linux) 11.2.202.236 and earlier 11.2.202.238
Adobe Flash Player (Android 4.x) 11.1.115.8 and earlier See APSB12-22
Adobe AIR (all platforms) 3.4.0.2710 and earlier 3.4.0.2710

Technical Details

Integer overflow vulnerabilities (CWE-190) occur when an arithmetic operation produces a result that exceeds the maximum value representable in the integer type, causing the value to wrap around to a small number. In CVE-2012-5054, the Flash Player's Matrix3D implementation performs integer arithmetic on attacker-controlled argument values without proper bounds checking.

The exploitation path:

  1. A malicious SWF file passes specially crafted argument values to Matrix3D operations in Flash ActionScript
  2. Integer arithmetic on these values overflows, producing a small result
  3. Flash Player allocates a buffer based on the overflowed (too-small) size
  4. When Flash subsequently writes the full intended data into this undersized buffer, a heap overflow occurs
  5. The heap overflow corrupts adjacent heap structures, enabling controlled code execution

This integer-overflow-to-heap-overflow chain is a classic exploitation pattern in media parsers and rendering engines.

Discovery

The vulnerability was discovered through security research and coordinated with Adobe prior to the APSB12-22 patch. The September 2012 Flash Player update addressed multiple vulnerabilities alongside CVE-2012-5054.

Exploitation Context

CISA confirmed in-the-wild exploitation. Flash Player integer overflow vulnerabilities were exploited in targeted attack campaigns, with malicious SWF content delivered via web pages or embedded in Office documents. Adobe Flash vulnerabilities were exploited at a high rate throughout 2012, with CVE-2012-5054 being one of multiple Flash issues patched in the September–October 2012 timeframe.

Remediation

Adobe Flash Player reached end-of-life on December 31, 2020. Organizations should:

  1. Verify Flash Player is completely removed from all endpoints (Windows, macOS, Linux)
  2. Check via Group Policy or endpoint management tools for any remaining Flash installations
  3. Audit legacy systems that may have preserved Flash for compatibility — replace or isolate these
  4. Block .swf file delivery at email and web content filtering gateways

Key Details

PropertyValue
CVE ID CVE-2012-5054
Vendor / Product Adobe — Flash Player
NVD Published2012-09-24
NVD Last Modified2025-10-22
CVSS 3.1 Score8.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-190 find similar ↗
CISA KEV Added2022-06-08
CISA KEV Deadline2022-06-22
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
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-22. The impacted product is end-of-life and should be disconnected if still in use.

Timeline

DateEvent
2012-09-21Adobe releases APSB12-22 (Flash Player 11.4.402.287) patching the integer overflow
2012-09-24CVE-2012-5054 published
2022-06-08Added to CISA Known Exploited Vulnerabilities catalog
2022-06-22CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2012-5054 Vulnerability Database
CISA KEV Catalog Entry US Government
Adobe Security Bulletin APSB12-22 Vendor Advisory