CVE-2021-30019

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-30019
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-30019.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-30019
Downstream
Published
2021-04-19T20:15:14.490Z
Modified
2025-11-14T11:48:18.063092Z
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

In the adtsdmxprocess function in filters/reframeadts.c in GPAC 1.0.1, a crafted file may cause ctx->hdr.framesize to be smaller than ctx->hdr.hdr_size, resulting in size to be a negative number and a heap overflow in the memcpy.

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_version": "v1",
        "deprecated": false,
        "target": {
            "function": "adts_dmx_process",
            "file": "src/filters/reframe_adts.c"
        },
        "digest": {
            "function_hash": "227599067399516482075011625574724207137",
            "length": 7358.0
        },
        "signature_type": "Function",
        "source": "https://github.com/gpac/gpac/commit/22774aa9e62f586319c8f107f5bae950fed900bc",
        "id": "CVE-2021-30019-471ca0eb"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/filters/reframe_adts.c"
        },
        "digest": {
            "line_hashes": [
                "197185477795747438075566840701096839964",
                "133582088252870862700942709230991040706",
                "111509101733101854599458563419876650348"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/gpac/gpac/commit/22774aa9e62f586319c8f107f5bae950fed900bc",
        "id": "CVE-2021-30019-657131c2"
    }
]

source

"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-30019.json"