Skip to main content
Mallory
← Back to News
proof-of-concept-releaseopen-source-dependency-vulnerabilityendpoint-software-vulnerabilitywidely-deployed-product-advisory

FFmpeg RASC Decoder Flaw Enables Heap Out-of-Bounds Write via Crafted Media

Patch & Detection Intelligence · 4 sources · Updated 5mo ago · First seen Jun 28, 2026

FFmpeg RASC Decoder Flaw Enables Heap Out-of-Bounds Write via Crafted Media

A high-severity vulnerability tracked as CVE-2026-58049 affects FFmpeg’s RASC video decoder in libavcodec/rasc.c, where the decode_dlta() function performs 32-bit reads and writes before enforcing a row-boundary check. The flaw is compounded by validating the DLTA region in pixel units rather than byte units, allowing a crafted media stream using the RASC FourCC to access several bytes past a PAL8 frame row allocation. Security advisories say the bug can trigger a bitstream-controlled heap out-of-bounds write and an adjacent out-of-bounds read during decoding, leading to memory corruption and potential remote exploitation.

A public proof of concept demonstrates the issue on FFmpeg upstream code and shows how DLTA run handlers can write past a 64-byte PAL8 frame row boundary. The PoC uses a custom buffer callback to place a function pointer next to the frame buffer, then overwrites the low bytes of that pointer through a crafted DLTA run to redirect execution, while AddressSanitizer reports a heap-buffer-overflow in decode_dlta(). Reported mitigations include updating FFmpeg, applying vendor patches, and moving row-boundary validation ahead of every 32-bit access with stricter checks such as ensuring cx + 4 <= w * s->bpp.

Why it matters

Impact assessment

CVE-2026-58049 is a high-severity memory corruption flaw in FFmpeg's libavcodec RASC decoder that affects any product, service, or workflow that decodes untrusted RASC media through FFmpeg. Media processing pipelines, desktop applications, browsers or collaboration tools embedding FFmpeg, content moderation systems, and backend transcoding services are the most exposed populations.

The impact is potentially severe because a crafted media file can trigger a bitstream-controlled heap out-of-bounds write and adjacent out-of-bounds read during decoding, creating a path to process crash, service disruption, and possible remote code execution. Exposure is likely broad wherever FFmpeg is deployed, but exploitation requires delivery of a crafted RASC stream; the references provide a public proof of concept but do not cite confirmed in-the-wild exploitation.

Supporting details

  • Affected product: FFmpeg
  • Affected component: libavcodec RASC decoder
  • Vulnerable function: decode_dlta() in libavcodec/rasc.c
  • Trigger condition: decoding a crafted media stream using the RASC FourCC
  • Impact types: heap out-of-bounds write, adjacent out-of-bounds read, memory corruption
  • Potential outcomes: application crash, decoder compromise, downstream service interruption, possible code execution
  • Scope: potentially widespread across environments that ingest untrusted media with FFmpeg
  • Exploitation status: public proof of concept available; no confirmed in-the-wild exploitation stated in the references
Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Jun 27, 2026 – Jun 28, 2026
  1. Jun 28, 20265mo ago

    Proof-of-concept exploit for FFmpeg RASC flaw published

    A GitHub proof of concept was published demonstrating exploitation of the FFmpeg libavcodec RASC decoder bug on upstream master. The PoC shows how a crafted bitstream can overwrite a nearby callback pointer and redirect execution, with AddressSanitizer output confirming a heap-buffer-overflow in decode_dlta().

    exploitarium/ffmpeg-rasc-dlta-calc-poc at main · bikini/exploitarium · GitHub
  2. Jun 27, 20265mo ago

    FFmpeg RASC decoder out-of-bounds write vulnerability disclosed

    A high-severity vulnerability affecting FFmpeg's RASC video decoder decode_dlta() function was disclosed. The flaw allows a crafted RASC media stream to trigger a bitstream-controlled out-of-bounds heap write and adjacent out-of-bounds read during decoding, leading to memory corruption.

    FFmpeg - Out-of-Bounds Write in RASC Decoder decode_dlta() | Advisories | VulnCheck
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Ffmpeg

Organizations

1 linked
Ffmpeg
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.