Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-40566

A Segmentation fault casued by heap use after free vulnerability exists in Gpac through 1.0.1 via the mpgviddmx_process function in reframe_mpgvid.c when using mp4box, which causes a denial of service.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-40566
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:38 UTC · Revision 1

Source evidence

CVE-2021-40566

core-osv · Original source

Published 12 Jan 2022, 22:15 UTC

A Segmentation fault casued by heap use after free vulnerability exists in Gpac through 1.0.1 via the mpgviddmx_process function in reframe_mpgvid.c when using mp4box, which causes a denial of service.

osv:CVE-2021-40566
Complete source record
{
  "id": "a1547b06f8d6ebeaf4c8b868d047f4074803513e24531b836b16762bfda63c3b",
  "url": "https://osv.dev/vulnerability/CVE-2021-40566",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-40566",
    "summary": "A Segmentation fault casued by heap use after free vulnerability exists in Gpac through 1.0.1 via the mpgviddmx_process function in reframe_mpgvid.c when using mp4box, which causes a denial of service.",
    "evidence": "osv:CVE-2021-40566",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-40566",
      "aliases": [
        "CVE-2021-40566"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gpac/gpac",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"
                },
                {
                  "fixed": "96047e0e6166407c40cc19f4e94fb35cd7624391"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gpac:gpac:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.0.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "96047e0e6166407c40cc19f4e94fb35cd7624391"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.0.1",
            "v0.7.1",
            "v0.7.0",
            "v0.6.0",
            "v0.5.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40566.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-40566-16fd738c",
                "digest": {
                  "length": 11396,
                  "function_hash": "305625114589442320355981792635002388920"
                },
                "source": "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391",
                "target": {
                  "file": "src/filters/reframe_mpgvid.c",
                  "function": "mpgviddmx_process"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-40566-2b29b787",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "142280585278956617665387756210879740676",
                    "309955364860874559081365588692130465606",
                    "319703081384836031728711344227518151867",
                    "132175666893138713923828993571759094939",
                    "219797106537938709166819118999313962213",
                    "177739104687371892988919439237520125235",
                    "309457119218059962258650711748561420964",
                    "153648196953304188186569535124420753986",
                    "26889089776504112179443594280174170776",
                    "72127980592832060232464495774616836053",
                    "31585927435235774083642036324626797114",
                    "90318461109913242838715139466237489602",
                    "331574364385427865901560108678239943714",
                    "220943766762355409706527633548157077924",
                    "177739104687371892988919439237520125235",
                    "309457119218059962258650711748561420964",
                    "153648196953304188186569535124420753986",
                    "26889089776504112179443594280174170776"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391",
                "target": {
                  "file": "src/filters/reframe_mpgvid.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-40566-7f3cb7f1",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "269966444420398294272664563764939806933",
                    "144984144068439176208980274542536662297",
                    "209682731660002428161403518721492660025",
                    "143647077360532050751765031233056589362"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391",
                "target": {
                  "file": "src/filters/dec_xvid.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-40566-d0557a92",
                "digest": {
                  "length": 2820,
                  "function_hash": "283974345856270385246024446578108681975"
                },
                "source": "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391",
                "target": {
                  "file": "src/filters/dec_xvid.c",
                  "function": "xviddec_configure_pid"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:08:50Z"
          }
        }
      ],
      "modified": "2026-10-20T14:08:50.002015927Z",
      "provider": "osv",
      "references": [
        "https://github.com/gpac/gpac/issues/1887",
        "https://www.debian.org/security/2023/dsa-5411",
        "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-40566",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388581,
  "published_at": "2022-01-12T22:15:07.933+00:00"
}