High
Security advisory
A buffer overflow vulnerability exists in Gpac through 1.0.1 via a malformed MP4 file in the svc_parse_slice function in av_parsers.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-40568
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:38 UTC · Revision 1
Source evidence
A buffer overflow vulnerability exists in Gpac through 1.0.1 via a malformed MP4 file in the svc_parse_slice function in av_parsers.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.
osv:CVE-2021-40568
Complete source record
{
"id": "8225376e997eacf05f57a520220c6e287323f55bcd5f863d9fd9e85264448899",
"url": "https://osv.dev/vulnerability/CVE-2021-40568",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-40568",
"summary": "A buffer overflow vulnerability exists in Gpac through 1.0.1 via a malformed MP4 file in the svc_parse_slice function in av_parsers.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.",
"evidence": "osv:CVE-2021-40568",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-40568",
"aliases": [
"CVE-2021-40568"
],
"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": "0"
},
{
"last_affected": "d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"
},
{
"fixed": "f1ae01d745200a258cdf62622f71754c37cb6c30"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gpac:gpac:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.0.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "f1ae01d745200a258cdf62622f71754c37cb6c30"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.0.1",
"v0.7.1",
"v0.7.0",
"v0.6.0",
"v0.5.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40568.json",
"vanir_signatures": [
{
"id": "CVE-2021-40568-29ccc687",
"digest": {
"threshold": 0.9,
"line_hashes": [
"271653455945834763208605817383398407567",
"108141525076181077294603074563806756805",
"190803646424172019847377105406717169819",
"89477344314601249121963044820989003834",
"290637595160814789406353695481930629703",
"63844348439704388504248188721780055958",
"77211956177004889184976754078166324125",
"93252862727952819464823552247917341008",
"210379992823712861008072287307593731924",
"164007027648911898047628708525104472158",
"33139317742673087143301621788696875760",
"71975751562691156573789078052992987280",
"242024803436346367085704818926588916010",
"299823168141144608576117028597126088114",
"236105253951310564318966436216071134934",
"110357499185969270537647273652446008653",
"305083598892664072296549753441583846912"
]
},
"source": "https://github.com/gpac/gpac/commit/f1ae01d745200a258cdf62622f71754c37cb6c30",
"target": {
"file": "src/media_tools/av_parsers.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-40568-48037a01",
"digest": {
"length": 1785,
"function_hash": "59411885416295801732352142629685711594"
},
"source": "https://github.com/gpac/gpac/commit/f1ae01d745200a258cdf62622f71754c37cb6c30",
"target": {
"file": "src/media_tools/av_parsers.c",
"function": "svc_parse_slice"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-40568-e854a826",
"digest": {
"length": 761,
"function_hash": "10749217417946529625503250407587877509"
},
"source": "https://github.com/gpac/gpac/commit/f1ae01d745200a258cdf62622f71754c37cb6c30",
"target": {
"file": "src/media_tools/av_parsers.c",
"function": "gf_bs_read_ue_log_idx3"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:08:47Z"
}
}
],
"modified": "2026-10-20T14:08:47.572126465Z",
"provider": "osv",
"references": [
"https://www.debian.org/security/2023/dsa-5411",
"https://github.com/gpac/gpac/issues/1900",
"https://github.com/gpac/gpac/commit/f1ae01d745200a258cdf62622f71754c37cb6c30"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-40568",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388574,
"published_at": "2022-01-13T18:15:07.977+00:00"
}