CVE-2017-7866

Source
https://nvd.nist.gov/vuln/detail/CVE-2017-7866
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7866.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-7866
Downstream
Related
Published
2017-04-14T04:59:00Z
Modified
2025-10-14T16:16:22.149385Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

FFmpeg before 2017-01-23 has an out-of-bounds write caused by a stack-based buffer overflow related to the decode_zbuf function in libavcodec/pngdec.c.

References

Affected packages

Git / git.ffmpeg.org/ffmpeg.git

Affected ranges

Type
GIT
Repo
https://git.ffmpeg.org/ffmpeg.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Type
GIT
Repo
https://github.com/ffmpeg/ffmpeg
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

N

n0.*

n0.11-dev
n0.12-dev
n0.8

n1.*

n1.1-dev
n1.2-dev
n1.3-dev

n2.*

n2.0
n2.1-dev
n2.2-dev
n2.3-dev
n2.4-dev
n2.5-dev
n2.6-dev
n2.7-dev
n2.8-dev
n2.9-dev

n3.*

n3.1-dev
n3.2-dev
n3.3-dev

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/e371f031b942d73e02c090170975561fabd5c264",
            "signature_type": "Function",
            "target": {
                "function": "decode_zbuf",
                "file": "libavcodec/pngdec.c"
            },
            "deprecated": false,
            "digest": {
                "length": 923.0,
                "function_hash": "87848245540106794533880653684604751285"
            },
            "id": "CVE-2017-7866-ec38d51b"
        },
        {
            "signature_version": "v1",
            "source": "https://github.com/ffmpeg/ffmpeg/commit/e371f031b942d73e02c090170975561fabd5c264",
            "signature_type": "Line",
            "target": {
                "file": "libavcodec/pngdec.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "26969624828945994574510710227430743973",
                    "152110117048612621381608563860232678929",
                    "78619713611657215130901403769945274675",
                    "226450398239878141006525736976696391881",
                    "269873381620780376864095488219784657838",
                    "104794154060694300416873093341203918977",
                    "86336547730151847623710273798792938735",
                    "11352064019527706633746525888505553801",
                    "195565508762400866235641672554865859381",
                    "63131409930916887312085608251988781036"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2017-7866-f643add8"
        }
    ]
}