Description
GPAC through 26.07.0 contains a heap buffer overflow vulnerability in stbl_AddCTS() that allows attackers to corrupt heap memory by supplying a crafted MP4 file whose ctts box covers fewer samples than stsz. Attackers can convince a user to import the file with MP4Box -add, causing an out-of-bounds GF_DttsEntry write that crashes the process for denial of service.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
gpac gpac
Default version status: unaffected
0 to ≤ 26.07.0affected
pkg:github/gpac/gpacReferences
- https://github.com/gpac/gpac/issues/4077 ↗
- https://github.com/gpac/gpac/commit/28439dbfe389daac9be2d4280fc06d1a76667136 ↗
- https://github.com/gpac/gpac/blob/v26.07.0/src/isomedia/stbl_write.c#L325-L345 ↗
- https://github.com/sigdevel/pocs/blob/main/res/gpac/MP4Box/230/230_stbl_AddCTS_isomedia_stbl_write_c_343.mp4 ↗
- https://github.com/gpac/gpac ↗
- https://www.vulncheck.com/advisories/gpac-through-26.07.0-heap-buffer-overflow-via-stbl-addcts ↗