Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-40570

The binary MP4Box in Gpac 1.0.1 has a double-free vulnerability in the avc_compute_poc function in av_parsers.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-40570
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:53 UTC · Revision 1

Source evidence

CVE-2021-40570

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 avc_compute_poc function in av_parsers.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.

osv:CVE-2021-40570
Complete source record
{
  "id": "9672e4f176f367bc0591b5e74b6d2677e3a17246345011df1bbb2a299a31ca62",
  "url": "https://osv.dev/vulnerability/CVE-2021-40570",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-40570",
    "summary": "The binary MP4Box in Gpac 1.0.1 has a double-free vulnerability in the avc_compute_poc function in av_parsers.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.",
    "evidence": "osv:CVE-2021-40570",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-40570",
      "aliases": [
        "CVE-2021-40570"
      ],
      "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": "04dbf08bff4d61948bab80c3f9096ecc60c7f302"
                }
              ],
              "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": "04dbf08bff4d61948bab80c3f9096ecc60c7f302"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.1",
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40570.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-40570-02f95021",
                "digest": {
                  "length": 10192,
                  "function_hash": "39295482979318475893292998550012608033"
                },
                "source": "https://github.com/gpac/gpac/commit/04dbf08bff4d61948bab80c3f9096ecc60c7f302",
                "target": {
                  "file": "src/media_tools/av_parsers.c",
                  "function": "gf_avc_read_sps_bs_internal"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-40570-e7a12def",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "162301846487824417085976151097850441387",
                    "290865607641083795548660822562839751511",
                    "36877859478553293821283680965112273961",
                    "277556399151842539648333058950472107336"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/04dbf08bff4d61948bab80c3f9096ecc60c7f302",
                "target": {
                  "file": "src/media_tools/av_parsers.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:29:52Z"
          }
        }
      ],
      "modified": "2026-10-20T14:29:52.906285410Z",
      "provider": "osv",
      "references": [
        "https://www.debian.org/security/2023/dsa-5411",
        "https://github.com/gpac/gpac/issues/1899",
        "https://github.com/gpac/gpac/commit/04dbf08bff4d61948bab80c3f9096ecc60c7f302"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-40570",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 389082,
  "published_at": "2022-01-13T18:15:08.063+00:00"
}