CVE-2023-50010
High · 7.8CVSS
7.8
EPSS
0.5%
Published
Apr 19, 2024
CISA due date
—
Cloudanix analysis
A video processing tool has a flaw that lets someone already on the computer run their own programs and take control of the system.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
Buffer overflow in set_encoder_id within fftools/ffmpeg_enc.c permits memory corruption and arbitrary code execution by a local attacker.
Why it matters to the business
Systems processing media with this FFmpeg version face risk of full local compromise, enabling data theft or malware deployment in media workflows; high prevalence of FFmpeg increases exposure across video pipelines.
How an attack unfolds
A local attacker supplies crafted input to trigger the overflow in set_encoder_id, overwriting memory to execute attacker-controlled code without needing network access.
How to fix it
Upgrade ffmpeg to the commit e4d2666bdc3dbd177a81bbf428654a5f2fa3787a or newer; rebuild affected tools and verify the fix in ffmpeg_enc.c.
How to confirm the fix worked
Confirm binary version or source commit is at or after e4d2666bdc3dbd177a81bbf428654a5f2fa3787a; recompile and test set_encoder_id with boundary inputs to verify absence of overflow.
Typical attack path
- Obtain local shell or process execution rights on the target host
- Invoke ffmpeg binary with parameters or media files that reach set_encoder_id
- Trigger the overflow to inject and run arbitrary shellcode
How to detect it
Review process execution logs and crash reports for ffmpeg invocations involving encoder ID handling; inspect for segmentation faults or unexpected memory writes in ffmpeg_enc.c paths.
What your security team should do
- Immediately update all FFmpeg installations to the patched commit
- Restrict local execution privileges for ffmpeg binaries to trusted users only
- Scan build pipelines and containers for vulnerable versions and rebuild them
The record
Buffer Overflow vulnerability in Ffmpeg v.n6.1-3-g466799d4f5 allows a local attacker to execute arbitrary code via the set_encoder_id function in /fftools/ffmpeg_enc.c component.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Chainguard | ffmpeg-6 | 0 | 0 |
| Chainguard | ffmpeg-6-dev | 0 | 0 |
| Chainguard | ffmpeg-6-doc | 0 | 0 |
| Chainguard | ffmpeg-6-libavcodec61 | 0 | 0 |
| Chainguard | ffmpeg-6-libavdevice61 | 0 | 0 |
| Chainguard | ffmpeg-6-libavfilter10 | 0 | 0 |
| Chainguard | ffmpeg-6-libavformat61 | 0 | 0 |
| Chainguard | ffmpeg-6-libavutil59 | 0 | 0 |
| Chainguard | ffmpeg-6-libpostproc58 | 0 | 0 |
| Chainguard | ffmpeg-6-libswresample5 | 0 | 0 |
| Chainguard | ffmpeg-6-libswscale8 | 0 | 0 |
| Chainguard | ffmpeg-6-qt-faststart | 0 | 0 |
| Chainguard | ffmpeg-6-static | 0 | 0 |
| Debian:11 | ffmpeg | 0 | 7:4.3.7-0+deb11u1 |
| Debian:12 | ffmpeg | 0 | 7:5.1.5-0+deb12u1 |
| Debian:13 | ffmpeg | 0 | 7:7.0.1-3 |
| Mageia:9 | ffmpeg | 0 | 5.1.5-1.mga9 |
| Mageia:9 | ffmpeg | 0 | 5.1.5-1.mga9.tainted |
| SUSE:Enterprise Storage 7.1 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | ffmpeg-4 | 0 | 4.4-150400.3.27.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | ffmpeg-4 | 0 | 4.4-150400.3.27.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP5 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP5 | ffmpeg-4 | 0 | 4.4-150400.3.27.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | ffmpeg-4 | 0 | 4.4.5-150600.13.16.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | ffmpeg-4 | 0 | 4.4-150400.3.27.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | ffmpeg-4 | 0 | 4.4-150400.3.27.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP5 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP5 | ffmpeg-4 | 0 | 4.4-150400.3.27.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP6 | ffmpeg-4 | 0 | 4.4.5-150600.13.16.1 |
| Ubuntu:20.04:LTS | ffmpeg | 0 | No fix |
| Ubuntu:22.04:LTS | ffmpeg | 0 | No fix |
| Ubuntu:23.10 | ffmpeg | 0 | 7:6.0-6ubuntu1.1 |
| Ubuntu:Pro:14.04:LTS | libav | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ffmpeg | 0 | 7:2.8.17-0ubuntu0.1+esm7 |
| Ubuntu:Pro:18.04:LTS | ffmpeg | 0 | 7:3.4.11-0ubuntu0.1+esm5 |
| Ubuntu:Pro:20.04:LTS | ffmpeg | 0 | 7:4.2.7-0ubuntu0.1+esm5 |
| Ubuntu:Pro:22.04:LTS | ffmpeg | 0 | 7:4.4.2-0ubuntu0.22.04.1+esm4 |
| Ubuntu:Pro:24.04:LTS | ffmpeg | 0 | 7:6.1.1-3ubuntu5+esm1 |
| openSUSE:Leap 15.5 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| openSUSE:Leap 15.5 | ffmpeg-4 | 0 | 4.4-150400.3.27.1 |
| openSUSE:Leap 15.6 | ffmpeg | 0 | 3.4.2-150200.11.44.1 |
| openSUSE:Leap 15.6 | ffmpeg-4 | 0 | 4.4.5-150600.13.16.1 |
| openSUSE:Tumbleweed | ffmpeg-4 | 0 | 4.4.4-10.1 |
| openSUSE:Tumbleweed | ffmpeg-5 | 0 | 5.1.4-7.1 |
| openSUSE:Tumbleweed | ffmpeg-6 | 0 | 6.1.2-4.1 |
| openSUSE:Tumbleweed | ffmpeg-7 | 0 | 7.1.1-1.1 |
Related vulnerabilities
- CVE-2025-0518 Unchecked Return Value, Out-of-bounds Read vulnerability in FFmpeg allows Read Sensitive… Also affects ffmpeg-6
- CVE-2023-51794 Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to… Also affects ffmpeg-6
- CVE-2023-51793 Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to… Also affects ffmpeg-6
- CVE-2023-51796 Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to… Also affects ffmpeg-6
- CVE-2023-51798 Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to… Also affects ffmpeg-6
- CVE-2023-51791 Buffer Overflow vulenrability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to… Also affects ffmpeg-6
- CVE-2023-51795 Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to… Also affects ffmpeg-6
- CVE-2023-50009 Buffer Overflow vulnerability in Ffmpeg v.n6.1-3-g466799d4f5 allows a local attacker to… Also affects ffmpeg-6