CVE-2021-31254

Source
https://cve.org/CVERecord?id=CVE-2021-31254
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31254.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-31254
Downstream
Published
2021-04-19T19:15:18Z
Modified
2026-08-07T16:57:18Z
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

Buffer overflow in the tenc_box_read function in MP4Box in GPAC 1.0.1 allows attackers to cause a denial of service or execute arbitrary code via a crafted file, related invalid IV sizes.

References

Affected packages

Git / github.com/gpac/gpac

Affected ranges

Type
GIT
Repo
https://github.com/gpac/gpac
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:gpac:gpac:1.0.1:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "1.0.1"
        },
        {
            "last_affected": "1.0.1"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.0.1
v1.*
v1.0.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31254.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "function_hash": "4849708879882613840022375048679469026",
            "length": 773
        },
        "id": "CVE-2021-31254-dfdec9a9",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/gpac/gpac/commit/8986422c21fbd9a7bf6561cae65aae42077447e8",
        "target": {
            "file": "src/isomedia/box_code_drm.c",
            "function": "tenc_box_read"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "9954390780939663405509649729900886593",
                "329965104858358940077373459695648792305",
                "325748983408990306817580626227468735250",
                "68100611574058582112789217219950522545",
                "218938213027427872819405339186102037022",
                "296214368139074869037793616046949433081"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-31254-f4b9a9b3",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/gpac/gpac/commit/8986422c21fbd9a7bf6561cae65aae42077447e8",
        "target": {
            "file": "src/isomedia/box_code_drm.c"
        }
    }
]
vanir_signatures_modified
"2026-08-07T16:57:18Z"