Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-40571

The binary MP4Box in Gpac 1.0.1 has a double-free vulnerability in the ilst_box_read function in box_code_apple.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.

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

Source evidence

CVE-2021-40571

core-osv · Original source

Published 13 Jan 2022, 18:15 UTC

The binary MP4Box in Gpac 1.0.1 has a double-free vulnerability in the ilst_box_read function in box_code_apple.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.

osv:CVE-2021-40571
Complete source record
{
  "id": "5236beb94c7d05a5820bcfe9eca8bbc86154bb57c499045fdc41417dea21464f",
  "url": "https://osv.dev/vulnerability/CVE-2021-40571",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-40571",
    "summary": "The binary MP4Box in Gpac 1.0.1 has a double-free vulnerability in the ilst_box_read function in box_code_apple.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.",
    "evidence": "osv:CVE-2021-40571",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-40571",
      "aliases": [
        "CVE-2021-40571"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gpac/gpac",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"
                },
                {
                  "last_affected": "d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"
                },
                {
                  "fixed": "a69b567b8c95c72f9560c873c5ab348be058f340"
                }
              ],
              "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": "a69b567b8c95c72f9560c873c5ab348be058f340"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.1",
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40571.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-40571-a79836d7",
                "digest": {
                  "length": 2616,
                  "function_hash": "267599386368034517678407404425567609043"
                },
                "source": "https://github.com/gpac/gpac/commit/a69b567b8c95c72f9560c873c5ab348be058f340",
                "target": {
                  "file": "src/odf/descriptors.c",
                  "function": "gf_odf_av1_cfg_read_bs_size"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-40571-f476bab8",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "167712747624264993690543912685537572073",
                    "46605784320911199798118875246953709599",
                    "10592338377528693664937670519065565482",
                    "14721782883213438859082900364656024061"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/a69b567b8c95c72f9560c873c5ab348be058f340",
                "target": {
                  "file": "src/odf/descriptors.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:08:50Z"
          }
        }
      ],
      "modified": "2026-10-20T14:08:50.804175918Z",
      "provider": "osv",
      "references": [
        "https://www.debian.org/security/2023/dsa-5411",
        "https://github.com/gpac/gpac/issues/1895",
        "https://github.com/gpac/gpac/commit/a69b567b8c95c72f9560c873c5ab348be058f340"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-40571",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388585,
  "published_at": "2022-01-13T18:15:08.113+00:00"
}