cbcvebase.
CVE-2023-40476
published 2024-05-03

CVE-2023-40476: GStreamer H265 Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on…

PriorityP260high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
2.01%
78.4th percentile
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.

Affected

4 ranges
VendorProductVersion rangeFixed in
debiangst-plugins-bad1.0< gst-plugins-bad1.0 1.22.0-4+deb12u2 (bookworm)gst-plugins-bad1.0 1.22.0-4+deb12u2 (bookworm)
gstreamergstreamer< 1.22.61.22.6
gstreamergstreamer
ubuntugst-plugins-bad1.0

Detection & IOCsextracted from sources · hover to see the quote

  • The vulnerability exists in H.265 (H265) video file parsing within GStreamer's gstreamer-plugins-bad / gstreamer1-plugins-bad-free package; detect processing of malformed H.265 encoded video files by the affected library.
  • Monitor for stack-based buffer overflow conditions or integer overflow events triggered during H.265 video stream parsing in GStreamer Plugins Bad, which may precede a crash or code execution.
  • ·Attack vectors vary depending on the implementation; any application that passes untrusted H.265 video data to GStreamer is potentially exposed.
  • ·Red Hat rates this as Moderate impact because exploitation requires a local user and direct interaction with the library; remote exploitation depends on how the library is exposed by the application.
  • ·Fixed versions are available: Debian bookworm fixed in 1.22.0-4+deb12u2, bullseye in 1.18.4-3+deb11u2, and sid/trixie/forky in 1.22.7-1. Ensure patched versions are deployed.

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
vendor_ubuntu8.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.