High
Security advisory
The binary MP4Box in Gpac from 0.9.0-preview to 1.0.1 has a double-free vulnerability in the gf_text_get_utf8_line function in load_text.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-40574
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:53 UTC · Revision 1
Source evidence
The binary MP4Box in Gpac from 0.9.0-preview to 1.0.1 has a double-free vulnerability in the gf_text_get_utf8_line function in load_text.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.
osv:CVE-2021-40574
Complete source record
{
"id": "2df3b38cb2fe0e9ea4580633ba0028c7fafc77e4133649d869c2cc5322c09b79",
"url": "https://osv.dev/vulnerability/CVE-2021-40574",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-40574",
"summary": "The binary MP4Box in Gpac from 0.9.0-preview to 1.0.1 has a double-free vulnerability in the gf_text_get_utf8_line function in load_text.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.",
"evidence": "osv:CVE-2021-40574",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-40574",
"aliases": [
"CVE-2021-40574"
],
"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": "ed4ec31ea84a1a94abb17669db33f5c4e7a679cf"
},
{
"last_affected": "d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"
},
{
"fixed": "30ac5e5236b790accd1f25347eebf2dc8c6c1bcb"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gpac:gpac:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.9.0"
},
{
"last_affected": "1.0.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "30ac5e5236b790accd1f25347eebf2dc8c6c1bcb"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40574.json",
"vanir_signatures": [
{
"id": "CVE-2021-40574-5f2a698c",
"digest": {
"length": 1611,
"function_hash": "230210492341566583915014837668410286663"
},
"source": "https://github.com/gpac/gpac/commit/30ac5e5236b790accd1f25347eebf2dc8c6c1bcb",
"target": {
"file": "src/filters/load_text.c",
"function": "gf_text_get_utf8_line"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-40574-8b3557f3",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180728915578673776719162757042366151258",
"240734627911263875664516209368288375490",
"222287515743341404633450966596245244444",
"64109077259693350474625864948021857235",
"166482483231269289728412799493455409256",
"294305885484496685493816442798177987069",
"339237291132411872005631746324972709639",
"158498996080456010138040219121678181146",
"128200279200830873988320868286409958588",
"181105664868832716179405220100333977639",
"164337026075874724797191200993357550532",
"106130394707070135858149980450533248725"
]
},
"source": "https://github.com/gpac/gpac/commit/30ac5e5236b790accd1f25347eebf2dc8c6c1bcb",
"target": {
"file": "src/filters/load_text.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-40574-905b8074",
"digest": {
"length": 3374,
"function_hash": "194929129869498996262184414212790556334"
},
"source": "https://github.com/gpac/gpac/commit/30ac5e5236b790accd1f25347eebf2dc8c6c1bcb",
"target": {
"file": "src/filters/load_text.c",
"function": "gf_text_process_sub"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:29:51Z"
}
}
],
"modified": "2026-10-20T14:29:51.310030095Z",
"provider": "osv",
"references": [
"https://github.com/gpac/gpac/blob/v0.9.0-preview/src/filters/load_text.c#L232",
"https://github.com/gpac/gpac/blob/v0.9.0-preview/src/filters/load_text.c#L304",
"https://www.debian.org/security/2023/dsa-5411",
"https://github.com/gpac/gpac/issues/1897",
"https://github.com/gpac/gpac/commit/30ac5e5236b790accd1f25347eebf2dc8c6c1bcb"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-40574",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 389078,
"published_at": "2022-01-13T19:15:08.317+00:00"
}