Vulnerability · Published Aug 21, 2021 · Assigned by mitre
CVE-2021-38171
Critical 9.8
In plain English
A critical-severity security flaw in the ffmpeg package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.4% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.4%top 15.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
adts_decode_extradata in libavformat/adtsenc.c in FFmpeg 4.4 does not check the init_get_bits return value, which is a necessary step because the second argument to init_get_bits can be crafted.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ffmpeg | 4.4.1-r0 | ALPINE-CVE-2021-38171 |
| Alpine:v3.21 | ffmpeg | 4.4.1-r0 | ALPINE-CVE-2021-38171 |
| Alpine:v3.22 | ffmpeg | 4.4.1-r0 | ALPINE-CVE-2021-38171 |
| Alpine:v3.23 | ffmpeg | 4.4.1-r0 | ALPINE-CVE-2021-38171 |
| Alpine:v3.24 | ffmpeg | 4.4.1-r0 | ALPINE-CVE-2021-38171 |
| Alpine:v3.20 | ffmpeg4 | 4.4.1-r0 | ALPINE-CVE-2021-38171 |
| Alpine:v3.21 | ffmpeg4 | 4.4.1-r0 | ALPINE-CVE-2021-38171 |
| Alpine:v3.22 | ffmpeg4 | 4.4.1-r0 | ALPINE-CVE-2021-38171 |
| Debian:12 | ffmpeg | 7:4.4.1-1 | DEBIAN-CVE-2021-38171 |
| Debian:13 | ffmpeg | 7:4.4.1-1 | DEBIAN-CVE-2021-38171 |
| Debian:14 | ffmpeg | 7:4.4.1-1 | DEBIAN-CVE-2021-38171 |
| Ubuntu:22.04:LTS | ffmpeg | 7:4.4.2-0ubuntu0.22.04.1 | USN-5472-1 |
Affected products (as reported)
References
- https://patchwork.ffmpeg.org/project/ffmpeg/patch/AS8P193MB12542A86E22F8207EC971930B6F19%40AS8P193MB1254.EURP193.PROD.OUTLOOK.COM/
- https://github.com/FFmpeg/FFmpeg/commit/9ffa49496d1aae4cbbb387aac28a9e061a6ab0a6
- DSA-4990 vendor-advisory
- DSA-4998 vendor-advisory
- [debian-lts-announce] 20211114 [SECURITY] [DLA 2818-1] ffmpeg security update mailing-list
- GLSA-202312-14 vendor-advisory