Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-31258

The gf_isom_set_extraction_slc function in GPAC 1.0.1 allows attackers to cause a denial of service (NULL pointer dereference) via a crafted file in the MP4Box command.

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

Source evidence

CVE-2021-31258

core-osv · Original source

Published 19 Apr 2021, 19:15 UTC

The gf_isom_set_extraction_slc function in GPAC 1.0.1 allows attackers to cause a denial of service (NULL pointer dereference) via a crafted file in the MP4Box command.

osv:CVE-2021-31258
Complete source record
{
  "id": "25a84071d4fe5d54f8ab4631b3e1e5ec80b3148373ecb7cbfe080afb4536c0a3",
  "url": "https://osv.dev/vulnerability/CVE-2021-31258",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-31258",
    "summary": "The gf_isom_set_extraction_slc function in GPAC 1.0.1 allows attackers to cause a denial of service (NULL pointer dereference) via a crafted file in the MP4Box command.",
    "evidence": "osv:CVE-2021-31258",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-31258",
      "aliases": [
        "CVE-2021-31258"
      ],
      "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": "d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"
                },
                {
                  "last_affected": "d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"
                },
                {
                  "fixed": "ebfa346eff05049718f7b80041093b4c5581c24e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gpac:gpac:1.0.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0.1"
                      },
                      {
                        "last_affected": "1.0.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ebfa346eff05049718f7b80041093b4c5581c24e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.1",
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31258.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-31258-3ba70ab4",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "270617900074585397401484796233809869972",
                    "266556905381068162363874736581927080072",
                    "128247643108269553959618366844869920155",
                    "151002184077632499010279979493437122930"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/ebfa346eff05049718f7b80041093b4c5581c24e",
                "target": {
                  "file": "src/isomedia/isom_read.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-31258-802802f4",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "259652571069950963945971642835717277815",
                    "215728378582260301418390893771053441032",
                    "309570343603242213718214264290582359552",
                    "158326549550549045648789173518921490312"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/ebfa346eff05049718f7b80041093b4c5581c24e",
                "target": {
                  "file": "src/media_tools/isom_hinter.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-31258-98bde890",
                "digest": {
                  "length": 3648,
                  "function_hash": "201795973519872899739681987433964370864"
                },
                "source": "https://github.com/gpac/gpac/commit/ebfa346eff05049718f7b80041093b4c5581c24e",
                "target": {
                  "file": "src/isomedia/isom_read.c",
                  "function": "gf_isom_guess_specification"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-31258-b0a46259",
                "digest": {
                  "length": 1038,
                  "function_hash": "212030541430037658386937552276659384204"
                },
                "source": "https://github.com/gpac/gpac/commit/ebfa346eff05049718f7b80041093b4c5581c24e",
                "target": {
                  "file": "src/isomedia/isom_write.c",
                  "function": "gf_isom_set_extraction_slc"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-31258-b987cc06",
                "digest": {
                  "length": 10398,
                  "function_hash": "191501682910234544732100356540988623355"
                },
                "source": "https://github.com/gpac/gpac/commit/ebfa346eff05049718f7b80041093b4c5581c24e",
                "target": {
                  "file": "src/media_tools/isom_hinter.c",
                  "function": "gf_hinter_track_new"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-31258-fb702916",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "227718408228789048064985627527740910474",
                    "54977739924720519365670947084475811541",
                    "168597170443951711395261426255018734116",
                    "198785111809026613350662461408220335886",
                    "173339589024345270044873056453061851953",
                    "230281504719185982157164309706284803369",
                    "80623951809101107209873934467657455551",
                    "132786278438985534124625906195400243593",
                    "35380870174249906734613327619622366753",
                    "9083488159551905715355050900648687795",
                    "164644400157436864246531908615106085215",
                    "293507950621516326366231203972902870083",
                    "65466738529165524984898644288541299129",
                    "277399048657994215131697616686824185357",
                    "106105212666821748091817423852243024922",
                    "254564669850670643240633422548249399006"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/ebfa346eff05049718f7b80041093b4c5581c24e",
                "target": {
                  "file": "src/isomedia/isom_write.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:21:52Z"
          }
        }
      ],
      "modified": "2026-10-20T14:21:52.431144564Z",
      "provider": "osv",
      "references": [
        "https://github.com/gpac/gpac/commit/ebfa346eff05049718f7b80041093b4c5581c24e",
        "https://github.com/gpac/gpac/issues/1706"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-31258",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388831,
  "published_at": "2021-04-19T19:15:18.327+00:00"
}