Vulnerability · Published Dec 11, 2024 · Assigned by GitHub_M
CVE-2024-47541GHSL-2024-228: GStreamer has an out-of-bounds write in SSA subtitle parser
Medium 6.9
In plain English
A medium-severity out-of-bounds write in gstreamer from gstreamer. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
GStreamer is a library for constructing graphs of media-handling components. An OOB-write vulnerability has been identified in the gst_ssa_parse_remove_override_codes function of the gstssaparse.c file. This function is responsible for parsing and removing SSA (SubStation Alpha) style override codes, which are enclosed in curly brackets ({}). The issue arises when a closing curly bracket "}" appears before an opening curly bracket "{" in the input string. In this case, memmove() incorrectly duplicates a substring. With each successive loop iteration, the size passed to memmove() becomes progressively larger (strlen(end+1)), leading to a write beyond the allocated memory bounds. This vulnerability is fixed in 1.24.10.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | gstreamer1-plugins-base | 1.22.12-4.el9 | ALSA-2025:7243 |
| AlmaLinux:9 | gstreamer1-plugins-base-devel | 1.22.12-4.el9 | ALSA-2025:7243 |
| AlmaLinux:9 | gstreamer1-plugins-base-tools | 1.22.12-4.el9 | ALSA-2025:7243 |
| Alpine:v3.20 | gst-plugins-base | 1.24.10-r0 | ALPINE-CVE-2024-47541 |
| Alpine:v3.21 | gst-plugins-base | 1.24.10-r0 | ALPINE-CVE-2024-47541 |
| Alpine:v3.22 | gst-plugins-base | 1.24.10-r0 | ALPINE-CVE-2024-47541 |
| Alpine:v3.23 | gst-plugins-base | 1.24.10-r0 | ALPINE-CVE-2024-47541 |
| Alpine:v3.24 | gst-plugins-base | 1.24.10-r0 | ALPINE-CVE-2024-47541 |
| Debian:12 | gst-plugins-base1.0 | 1.22.0-3+deb12u3 | DSA-5831-1 |
| Debian:12 | gst-plugins-base1.0 | 1.22.0-3+deb12u3 | DEBIAN-CVE-2024-47541 |
| Debian:13 | gst-plugins-base1.0 | 1.24.10-1 | DEBIAN-CVE-2024-47541 |
| Debian:14 | gst-plugins-base1.0 | 1.24.10-1 | DEBIAN-CVE-2024-47541 |
| Rocky Linux:9 | gstreamer1-plugins-base | 0:1.22.12-4.el9 | RLSA-2025:7243 |
| Ubuntu:22.04:LTS | gst-plugins-base1.0 | 1.20.1-1ubuntu0.4 | USN-7175-1 |
| Ubuntu:22.04:LTS | gst-plugins-base1.0 | 1.20.1-1ubuntu0.4 | UBUNTU-CVE-2024-47541 |
| Ubuntu:24.04:LTS | gst-plugins-base1.0 | 1.24.2-1ubuntu0.2 | UBUNTU-CVE-2024-47541 |
| Ubuntu:24.04:LTS | gst-plugins-base1.0 | 1.24.2-1ubuntu0.2 | USN-7175-1 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
References
- https://securitylab.github.com/advisories/GHSL-2024-228_GStreamer/ x_refsource_CONFIRM
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8036.patch x_refsource_MISC
- https://gstreamer.freedesktop.org/security/sa-2024-0023.html x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/12/msg00021.html