Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-7866

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-7866
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:24 UTC · Revision 1

Source evidence

CVE-2017-7866

core-osv · Original source

Published 14 Apr 2017, 04:59 UTC

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.

osv:CVE-2017-7866
Complete source record
{
  "id": "45aaa7b1c49a396a661b624e5436e28b593dee7129986ca9770f4659d2f2af56",
  "url": "https://osv.dev/vulnerability/CVE-2017-7866",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-7866",
    "summary": "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.",
    "evidence": "osv:CVE-2017-7866",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2017-7866",
      "aliases": [
        "CVE-2017-7866"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.ffmpeg.org/ffmpeg.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "fb93771072cfcbdd523d9f4bcd7682ee8b7f5578"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.8.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "n2.8.9",
            "n2.8.8",
            "n2.8.7",
            "n2.8.6",
            "n2.8.5",
            "n2.8.4",
            "n2.8.3",
            "n2.8.2",
            "n2.8.1",
            "n2.8",
            "n2.8-dev",
            "n2.7-dev",
            "n2.6-dev",
            "n2.5-dev",
            "n2.4-dev",
            "n2.3-dev",
            "n2.2-dev",
            "n2.0",
            "n2.1-dev",
            "n1.3-dev",
            "n1.2-dev",
            "n1.1-dev",
            "n0.12-dev",
            "n0.11-dev",
            "n0.8",
            "N"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7866.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/ffmpeg/ffmpeg",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "fb93771072cfcbdd523d9f4bcd7682ee8b7f5578"
                },
                {
                  "fixed": "e371f031b942d73e02c090170975561fabd5c264"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.8.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e371f031b942d73e02c090170975561fabd5c264"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "n2.8.9",
            "n3.3-dev",
            "n2.8.8",
            "n2.8.7",
            "n3.2-dev",
            "n3.1-dev",
            "n2.8.6",
            "n2.8.5",
            "n2.8.4",
            "n2.8.3",
            "n2.8.2",
            "n2.8.1",
            "n2.8",
            "n2.9-dev",
            "n2.8-dev",
            "n2.7-dev",
            "n2.6-dev",
            "n2.5-dev",
            "n2.4-dev",
            "n2.3-dev",
            "n2.2-dev",
            "n2.0",
            "n2.1-dev",
            "n1.3-dev",
            "n1.2-dev",
            "n1.1-dev",
            "n0.12-dev",
            "n0.11-dev",
            "n0.8",
            "N"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7866.json",
            "vanir_signatures": [
              {
                "id": "CVE-2017-7866-ec38d51b",
                "digest": {
                  "length": 923,
                  "function_hash": "87848245540106794533880653684604751285"
                },
                "source": "https://github.com/ffmpeg/ffmpeg/commit/e371f031b942d73e02c090170975561fabd5c264",
                "target": {
                  "file": "libavcodec/pngdec.c",
                  "function": "decode_zbuf"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-7866-f643add8",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "26969624828945994574510710227430743973",
                    "152110117048612621381608563860232678929",
                    "78619713611657215130901403769945274675",
                    "226450398239878141006525736976696391881",
                    "269873381620780376864095488219784657838",
                    "104794154060694300416873093341203918977",
                    "86336547730151847623710273798792938735",
                    "11352064019527706633746525888505553801",
                    "195565508762400866235641672554865859381",
                    "63131409930916887312085608251988781036"
                  ]
                },
                "source": "https://github.com/ffmpeg/ffmpeg/commit/e371f031b942d73e02c090170975561fabd5c264",
                "target": {
                  "file": "libavcodec/pngdec.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:21:15Z"
          }
        }
      ],
      "modified": "2026-10-24T14:21:15.216448458Z",
      "provider": "osv",
      "references": [
        "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=444",
        "https://github.com/FFmpeg/FFmpeg/commit/e371f031b942d73e02c090170975561fabd5c264"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-7866",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443592,
  "published_at": "2017-04-14T04:59:00.617+00:00"
}