CVE-2021-31257

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-31257
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-31257.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-31257
Downstream
Published
2021-04-19T19:15:18Z
Modified
2025-09-19T12:54:37.161757Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

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": [
        {
            "digest": {
                "function_hash": "53835788517663611656893566215389549396",
                "length": 3821.0
            },
            "signature_type": "Function",
            "source": "https://github.com/gpac/gpac/commit/87afe070cd6866df7fe80f11b26ef75161de85e0",
            "target": {
                "file": "applications/mp4box/main.c",
                "function": "HintFile"
            },
            "signature_version": "v1",
            "deprecated": false,
            "id": "CVE-2021-31257-23554903"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "115810165752277888506123696991728882828",
                    "266874972863759520941413163698542361826",
                    "209509910709474573358654816600514102176",
                    "124401416960144259094587606488848084048"
                ]
            },
            "signature_type": "Line",
            "source": "https://github.com/gpac/gpac/commit/87afe070cd6866df7fe80f11b26ef75161de85e0",
            "target": {
                "file": "applications/mp4box/main.c"
            },
            "signature_version": "v1",
            "deprecated": false,
            "id": "CVE-2021-31257-8e628971"
        }
    ]
}