Vulnerabilities / CVE-2021-38171

critical

CVE-2021-38171

adts_decode_extradata in libavformat/adtsenc.c in FFmpeg 4.4 does not ...

Published Modified CWE 252
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Julia9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Julia. Rated lower by Ubuntu (medium).

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 and fixed versions

SourcePackageFixed in
julia::Julia Ecosystem Security AdvisoriesFFMPEG_jll4.4.2+0
alpine 3.13ffmpeg4.3.3-r0
alpine 3.14ffmpeg4.4.1-r0
alpine 3.15ffmpeg4.4.1-r0
alpine 3.16ffmpeg, ffmpeg44.4.1-r0
alpine 3.17ffmpeg, ffmpeg44.4.1-r0
alpine 3.18ffmpeg, ffmpeg44.4.1-r0
alpine 3.19ffmpeg, ffmpeg44.4.1-r0
alpine 3.20ffmpeg, ffmpeg44.4.1-r0
alpine 3.21ffmpeg, ffmpeg44.4.1-r0
alpine 3.22ffmpeg, ffmpeg44.4.1-r0
alpine 3.23ffmpeg4.4.1-r0
Show all 42 entries from 32 sources
SourcePackageFixed in
julia::Julia Ecosystem Security AdvisoriesFFMPEG_jll4.4.2+0
alpine 3.13ffmpeg4.3.3-r0
alpine 3.14ffmpeg4.4.1-r0
alpine 3.15ffmpeg4.4.1-r0
alpine 3.16ffmpeg4.4.1-r0
alpine 3.16ffmpeg44.4.1-r0
alpine 3.17ffmpeg4.4.1-r0
alpine 3.17ffmpeg44.4.1-r0
alpine 3.18ffmpeg4.4.1-r0
alpine 3.18ffmpeg44.4.1-r0
alpine 3.19ffmpeg4.4.1-r0
alpine 3.19ffmpeg44.4.1-r0
alpine 3.20ffmpeg4.4.1-r0
alpine 3.20ffmpeg44.4.1-r0
alpine 3.21ffmpeg4.4.1-r0
alpine 3.21ffmpeg44.4.1-r0
alpine 3.22ffmpeg4.4.1-r0
alpine 3.22ffmpeg44.4.1-r0
alpine 3.23ffmpeg4.4.1-r0
alpine 3.24ffmpeg4.4.1-r0
alpine edgeffmpeg4.4.1-r0
debian 10ffmpeg7:4.1.8-0+deb10u1
debian 11ffmpeg7:4.3.3-0+deb11u1
debian 12ffmpeg7:4.4.1-1
debian 13ffmpeg7:4.4.1-1
debian 14ffmpeg7:4.4.1-1
debian 9ffmpeg7:3.2.16-1+deb9u1
echoffmpeg7:4.4.1-1
rapidfort ubuntu 20.04ffmpeg7:4.4.2-0ubuntu0.21.10.1
rapidfort ubuntu 20.04rf-ffmpeg7:4.4.2-0ubuntu0.21.10.1
rapidfort ubuntu 22.04ffmpeg7:4.4.2-0ubuntu0.21.10.1
rapidfort ubuntu 22.04rf-ffmpeg7:4.4.2-0ubuntu0.21.10.1
rapidfort ubuntu 24.04ffmpeg7:4.4.2-0ubuntu0.21.10.1
rapidfort ubuntu 24.04rf-ffmpeg7:4.4.2-0ubuntu0.21.10.1
root.io debian 11rootio-ffmpeg7:4.3.3-0+deb11u1
root.io debian 12rootio-ffmpeg7:4.4.1-1
ubuntu 16.04-ESMffmpeg7:2.8.17-0ubuntu0.1+esm4
ubuntu 18.04ffmpeg7:3.4.11-0ubuntu0.1
ubuntu 18.04-ESMffmpeg7:3.4.11-0ubuntu0.1
ubuntu 20.04ffmpeg7:4.2.7-0ubuntu0.1
ubuntu 20.04-ESMffmpeg7:4.2.7-0ubuntu0.1
ubuntu 21.10ffmpeg7:4.4.2-0ubuntu0.21.10.1

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.