Description
GPAC through 26.07.0 contains a type confusion vulnerability in gf_sg_command_apply() in src/scenegraph/commands.c that fails to verify BIFS field-replace command types match target node fields. Attackers can supply a crafted XMT file opened with MP4Box, such as via chapter import, causing gf_sg_vrml_field_clone() to memcpy from invalid pointers and crash.
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
References
- https://github.com/gpac/gpac/issues/4032 ↗
- https://github.com/gpac/gpac ↗
- https://github.com/gpac/gpac/commit/1359c4da9329cedceeb8fcfeab6d97e0927236e1 ↗
- https://github.com/sigdevel/pocs/blob/main/res/gpac/MP4Box/224/224_gf_sg_command_apply_scenegraph_commands_c_346.xmt ↗
- https://github.com/gpac/gpac/blob/v26.07.0/src/scenegraph/commands.c#L321 ↗
- https://www.vulncheck.com/advisories/gpac-through-26.07.0-type-confusion-via-gf-sg-command-apply-xmt-field-replace ↗