Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-31257

The HintFile 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-31257
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:43 UTC · Revision 1

Source evidence

CVE-2021-31257

core-osv · Original source

Published 19 Apr 2021, 19:15 UTC

The HintFile 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-31257
Complete source record
{
  "id": "0f83202ac653e0419a7b550727d6df3800378f4e78190953b9f75173a4c94b22",
  "url": "https://osv.dev/vulnerability/CVE-2021-31257",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-31257",
    "summary": "The HintFile 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-31257",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-31257",
      "aliases": [
        "CVE-2021-31257"
      ],
      "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": "87afe070cd6866df7fe80f11b26ef75161de85e0"
                }
              ],
              "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": "87afe070cd6866df7fe80f11b26ef75161de85e0"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.1",
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31257.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-31257-23554903",
                "digest": {
                  "length": 3821,
                  "function_hash": "53835788517663611656893566215389549396"
                },
                "source": "https://github.com/gpac/gpac/commit/87afe070cd6866df7fe80f11b26ef75161de85e0",
                "target": {
                  "file": "applications/mp4box/main.c",
                  "function": "HintFile"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-31257-8e628971",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "115810165752277888506123696991728882828",
                    "266874972863759520941413163698542361826",
                    "209509910709474573358654816600514102176",
                    "124401416960144259094587606488848084048"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/87afe070cd6866df7fe80f11b26ef75161de85e0",
                "target": {
                  "file": "applications/mp4box/main.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:22:36Z"
          }
        }
      ],
      "modified": "2026-10-20T14:22:36.070049597Z",
      "provider": "osv",
      "references": [
        "https://github.com/gpac/gpac/commit/87afe070cd6866df7fe80f11b26ef75161de85e0",
        "https://github.com/gpac/gpac/issues/1734"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-31257",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388845,
  "published_at": "2021-04-19T19:15:18.267+00:00"
}