CVE-2023-40476 GStreamer H265 Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

High 8.8 Published Updated

Remote attackers can execute arbitrary code via a stack-based buffer overflow in GStreamer's H265 video parsing.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-40476?

CVE-2023-40476 is a high-severity memory corruption vulnerability in Gstreamer Gstreamer, published on 3 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

GStreamer H265 Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation.

The specific flaw exists within the parsing of H265 encoded video files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. . Was ZDI-CAN-21768.

Weakness: CWE-121

Which versions are affected by CVE-2023-40476?

It affects 1 product.

Products include Gstreamer Gstreamer.

How do I fix CVE-2023-40476?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-40476 being exploited?

There is no known exploitation of CVE-2023-40476 in the wild and no public exploit code.

All Gstreamer Gstreamer vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-40476, GHSA-jh94-w345-vcxj, UBUNTU-CVE-2023-40476.

Is CVE-2023-40476 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free