This document helps contributors reason about security impact in GPAC's media processing and streaming workflows. Report bugs and security findings through the GitHub issue tracker as directed by SECURITY.md, which defines reporting requirements, private disclosure exceptions, and the supported version. Each report needs to establish its actual entry point, deployment conditions, and consequence.
libgpac powers MP4Box, the gpac filter tool, and embedded applications. The project overview documents local files, network inputs, packaging, playback, and configurable filter pipelines. Common situations to consider are a person processing a file, an automated job processing supplied media, and a client consuming a remote manifest and its segments. Embedded applications may retain process state across operations and expose different API call sequences. Establish the real workflow rather than assuming that a library entry point has the same checks or exposure as a CLI command.
Operators and embedding applications choose commands, filters, paths, network access, profiles, local scripts, modules, and DRM settings. Within those choices, suppliers may control media payloads, references, manifest URLs, and scripts in supplied SVG; remote endpoints and clients of enabled services control responses or requests. Assets include process memory and control flow, media, local files and configuration, DRM keys and application credentials, network services reachable by the process, output integrity, and availability.
GPAC is not a process sandbox. Its security discussion recommends sandboxing processing of untrusted media and keeping deployments updated. Restrict the process's access to files, credentials, and networks, and bound resource use and retries. A separate process limits access only when its permissions or sandbox enforce restrictions; assess the controls actually used.
A CVE label does not establish deployment impact. A crash demonstrates a process failure. Assess its security impact by establishing who can trigger it, whether it affects one invocation, other jobs, a shared service, or protected data, and how isolation and restart behavior limit the effect. A crash does not by itself establish code execution.
| 3rd-party control | What GPAC uses | Possible consequence |
|---|---|---|
| Supplier-controlled boxes, samples, item names, codec configuration, and subtitles | Native parsers and filters use process memory and produce files or streams | Memory corruption, unintended output, or disproportionate work |
| File or URL references in supplied media | The process resolves content-selected references with its file or network access | Unexpected local reads or outbound requests, data incorporated into output, or excess work, depending on deployment |
| Publisher-controlled MPD/HLS content and segment URLs; endpoint-controlled redirects and responses | The client uses network access, cache, credentials, and local output | Access beyond an established restriction, credential exposure, or output confusion |
| Supplier-controlled encryption metadata with operator-provided DRM configuration | Media processing associates tracks and samples with keys and protection settings | Clear output, wrong key association, or exposure of protected material |
| Remote connections or requests to enabled listener filters, including HTTP/RTSP | Connection handling reaches configured resources and service state | Unauthorized access or service disruption |
| Multicast objects accepted by an enabled gateway | Object handling reaches gateway state and configured outputs | Content substitution or service disruption |
Across these paths, supplied data can drive concurrent filters and error teardown. Packet references and callbacks must remain valid across threads and filter lifetimes; violations can corrupt state or stop a service.
Network services and gateways require explicit configuration; identify the enabled mode, attacker access, and applicable permissions before claiming remote exposure. Build options and optional dependencies change which parsers and filters are reachable, so record the tested configuration and selected filter graph. Revisit this model when a new input, authority boundary, or deployment mode changes what untrusted parties can reach.
master HEAD. Provide the commit, input, and executable steps. For a library harness, explain production preconditions and any bypassed checks.