CVE-2021-40570

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-40570
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-40570.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-40570
Downstream
Published
2022-01-13T18:15:08Z
Modified
2025-10-15T13:17:26.724010Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Git / github.com/gpac/gpac

Affected ranges

Type
GIT
Repo
https://github.com/gpac/gpac
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.5.2
v0.6.0
v0.6.1
v0.7.0
v0.7.1
v0.8.0
v0.9.0
v0.9.0-preview

v1.*

v1.0.0
v1.0.1

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://github.com/gpac/gpac/commit/04dbf08bff4d61948bab80c3f9096ecc60c7f302",
        "signature_version": "v1",
        "target": {
            "function": "gf_avc_read_sps_bs_internal",
            "file": "src/media_tools/av_parsers.c"
        },
        "digest": {
            "function_hash": "39295482979318475893292998550012608033",
            "length": 10192.0
        },
        "id": "CVE-2021-40570-02f95021"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://github.com/gpac/gpac/commit/04dbf08bff4d61948bab80c3f9096ecc60c7f302",
        "signature_version": "v1",
        "target": {
            "file": "src/media_tools/av_parsers.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "162301846487824417085976151097850441387",
                "290865607641083795548660822562839751511",
                "36877859478553293821283680965112273961",
                "277556399151842539648333058950472107336"
            ]
        },
        "id": "CVE-2021-40570-e7a12def"
    }
]