CVE-2023-40474

NameCVE-2023-40474
DescriptionGStreamer MXF File Parsing Integer 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 MXF video files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before allocating a buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-21660.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3633-1, DSA-5533-1
Debian Bugs1053261

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gst-plugins-bad1.0 (PTS)buster1.14.4-1+deb10u2vulnerable
buster (security)1.14.4-1+deb10u5fixed
bullseye (security), bullseye1.18.4-3+deb11u4fixed
bookworm, bookworm (security)1.22.0-4+deb12u5fixed
sid, trixie1.24.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gst-plugins-bad0.10source(unstable)(unfixed)
gst-plugins-bad1.0sourcebuster1.14.4-1+deb10u4DLA-3633-1
gst-plugins-bad1.0sourcebullseye1.18.4-3+deb11u2DSA-5533-1
gst-plugins-bad1.0sourcebookworm1.22.0-4+deb12u2DSA-5533-1
gst-plugins-bad1.0source(unstable)1.22.7-11053261

Notes

https://gstreamer.freedesktop.org/security/sa-2023-0006.html
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5362
Fixed by: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/ce17e968e4cf900d28ca5b46f6e095febc42b4f0
Fixed by: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/f73fc41f2ca6a0cd4e883aee64bf8e1c15ff68ce (1.22.6)

Search for package or bug name: Reporting problems