Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-13305

In FFmpeg 4.0.1, due to a missing check for negative values of the mquant variable, the vc1_put_blocks_clamped function in libavcodec/vc1_block.c may trigger an out-of-array access while converting a crafted AVI file to MPEG4, leading to an information disclosure or a denial of service.

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

Source evidence

CVE-2018-13305

core-osv · Original source

Published 5 Jul 2018, 17:29 UTC

In FFmpeg 4.0.1, due to a missing check for negative values of the mquant variable, the vc1_put_blocks_clamped function in libavcodec/vc1_block.c may trigger an out-of-array access while converting a crafted AVI file to MPEG4, leading to an information disclosure or a denial of service.

osv:CVE-2018-13305
Complete source record
{
  "id": "909cdeb4ab9e5e73dd39b1aa5128869bcbe129940cdd2d4c28e608f360c14dbe",
  "url": "https://osv.dev/vulnerability/CVE-2018-13305",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-13305",
    "summary": "In FFmpeg 4.0.1, due to a missing check for negative values of the mquant variable, the vc1_put_blocks_clamped function in libavcodec/vc1_block.c may trigger an out-of-array access while converting a crafted AVI file to MPEG4, leading to an information disclosure or a denial of service.",
    "evidence": "osv:CVE-2018-13305",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-13305",
      "aliases": [
        "CVE-2018-13305"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.ffmpeg.org/ffmpeg.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e049f7c24fc6aa5fc925f860e2ad940a75cfd84f"
                },
                {
                  "last_affected": "e049f7c24fc6aa5fc925f860e2ad940a75cfd84f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ffmpeg:ffmpeg:4.0.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.1"
                      },
                      {
                        "last_affected": "4.0.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.1",
            "n4.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-13305.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/ffmpeg/ffmpeg",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e049f7c24fc6aa5fc925f860e2ad940a75cfd84f"
                },
                {
                  "last_affected": "e049f7c24fc6aa5fc925f860e2ad940a75cfd84f"
                },
                {
                  "fixed": "d08d4a8c7387e758d439b0592782e4cfa2b4d6a4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ffmpeg:ffmpeg:4.0.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.1"
                      },
                      {
                        "last_affected": "4.0.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d08d4a8c7387e758d439b0592782e4cfa2b4d6a4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.1",
            "n4.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-13305.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-13305-51b88888",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "315308842985963567160504347824073081058",
                    "112614877628104946103637232229328740279",
                    "51526975697305092278210617899140764129",
                    "61832793806366803356970899084193080255"
                  ]
                },
                "source": "https://github.com/ffmpeg/ffmpeg/commit/d08d4a8c7387e758d439b0592782e4cfa2b4d6a4",
                "target": {
                  "file": "libavcodec/vc1_block.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:11:33Z"
          }
        }
      ],
      "modified": "2026-10-24T14:11:33.962664981Z",
      "provider": "osv",
      "references": [
        "https://github.com/FFmpeg/FFmpeg/commit/d08d4a8c7387e758d439b0592782e4cfa2b4d6a4"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-13305",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443267,
  "published_at": "2018-07-05T17:29:00.61+00:00"
}