Skip to content
Memory corruption Write-up Advanced

CVE-2025-27091 – OpenH264 RCE

A race condition in OpenH264's decoding functions allows a heap overflow when a Sequence Parameter Set memory allocation races with a non-IDR NAL unit memory usage. An attacker could craft a malicious bitstream and trick a victim into processing a video, causing a crash and possibly arbitrary command execution.

tenable.com

Published on tenable.com

OpenH264 is a free license codec library which supports H.264 encoding and decoding. A vulnerability in the decoding functions of OpenH264 codec library could allow a remote, unauthenticated attacker to trigger a heap overflow.

The author, on tenable.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a race condition between memory allocation for a Sequence Parameter Set and later use of memory by a non-IDR NAL unit, leading to a heap overflow.

Impact

An attacker could cause an unexpected crash in the victim's decoding client and possibly perform arbitrary commands on the victim's host by abusing the heap overflow.

What the attacker needed

Victim processes a malicious video bitstream

The fix

The vulnerability was fixed in OpenH264 2.6.0 and later releases; users should upgrade.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

OpenH264 is software that decodes video. A bug lets a malicious video file cause a memory error called a heap overflow, which can crash the video player and sometimes let an attacker run their own commands. The problem happens because two parts of the decoder use memory in the wrong order.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.