Skip to content
Gpac Issues 3595

Gpac Issues 3595

github.com • November 28, 2026

Public reference issue for a security fix that has already landed, opened with the maintainer's agreement after private disclosure. No action needed, filing for the record and future CVE cross-reference.

The httpout filter, when run as a simple read-only HTTP server ( gpac httpout:rdirs= with no auth rule), allowed an unauthenticated remote client to read files outside the configured web root via path traversal.

A bare rdirs= requires no authentication ( httpout_auth_check() returns 200 when the directory has no ru / rg rule).

On the GET/HEAD read path, the percent-decoded request path was concatenated onto the configured directory in src/filters/out_http.c with no normalization and no traversal check. The existing "../" / "..\\" guard lived only in the PUT/POST upload branch.

Requests such as GET /../../../../etc/hostname (or the percent-encoded %2e%2e variant) returned out-of-root file contents with no Authorization header.

Unauthenticated arbitrary file read, bounded only by the gpac process's permissions: application source/config, TLS private keys (when run with -pkey ), media/business data, and GPAC's own ~/.gpac/creds.key AES key material.

Confirmed on master HEAD at 8f5b302 (26.03-DEV); the read path predates this, so releases through v26.02.0 are expected to be affected.

Fixed in c73275d (PR outhttp: prevent root escaping by checking the realpath() of resources #3593 ) by checking the realpath() of resolved resources and rejecting paths that escape the configured root.

Reported privately first; thanks to the maintainers for the quick fix. A CVE ID is being requested from MITRE (gpac does not assign CVEs); will add it here once assigned.

aureliendavid closed this as completed on Jun 3, 2026

Extracted Entities