CVE-2016-6164
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedInteger overflow in the mov_build_index function in libavformat/mov.c in FFmpeg before 2.8.8, 3.0.x before 3.0.3 and 3.1.x before 3.1.1 allows remote attackers to have unspecified impact via vectors involving sample size.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceInteger overflow vulnerability in FFmpeg's mov_build_index function (libavformat/mov.c) allows remote attackers to trigger heap corruption via specially crafted MOV media files with malicious sample size values. The overflow occurs when calculating memory allocation sizes for index building, potentially enabling arbitrary code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 2.8.7= 3.0= 3.0.1= 3.0.2= 3.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed FFmpeg versionRun 'ffmpeg -version' to display the version number. Alternatively, check the library file version for libavformat (for example, 'ffprobe -version' or inspect the shared library file properties).Affected if The version displayed is 2.8.7 or earlier, or exactly 3.0, 3.0.1, 3.0.2, or 3.1.
-
Verify MOV demuxer is enabledRun 'ffmpeg -formats 2>/dev/null | grep -i mov' or 'ffprobe -formats 2>/dev/null | grep -i mov' to list supported formats. Look for 'mov,mp4,m4a,3gp,3g2,mj2' in the demuxer list.Affected if MOV is listed as a supported demuxer format in the FFmpeg build.
-
Confirm the mov.c library is presentLocate the libavformat installation: check '/usr/lib/libavformat.so*' on Linux or inspect the FFmpeg installation directory on Windows. Verify that mov.c is compiled into the library (for example, check the binary's strings for 'mov_build_index' if debugging symbols exist).Affected if The libavformat library contains the MOV parsing code and the mov_build_index function is present in the binary.
-
Identify if processing untrusted MOV files is occurringReview application logs, file processing pipelines, or service configurations that invoke FFmpeg to process MOV files. Look for inputs originating from untrusted sources such as user uploads, external APIs, or network paths.Affected if FFmpeg is being used to parse MOV files from untrusted or external sources without prior validation.
Your environment is affected if the installed FFmpeg version falls within 2.8.7 or earlier, or 3.0 through 3.1 inclusive, and you process MOV files using that FFmpeg instance.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade FFmpeg to version 2.8.8, 3.0.3, 3.1.1 or later. If upgrading is not immediately feasible, restrict untrusted MOV file processing and implement file type validation before passing to FFmpeg.
FFmpeg 2.8.8, 3.0.3, 3.1.1, or latest stable release
- 1. Check current FFmpeg version by running: ffmpeg -version
- 2. If using FFmpeg 2.8.x branch, upgrade to version 2.8.8 or later
- 3. If using FFmpeg 3.0.x branch, upgrade to version 3.0.3 or later
- 4. If using FFmpeg 3.1.x branch, upgrade to version 3.1.1 or later
- 5. Alternatively, upgrade to the latest stable release (recommended)
- 6. Verify the upgrade was successful by running: ffmpeg -version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,096.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2016-6164 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2016-6164 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data