CVE-2026-138294 in Gpac
Summary
by MITRE • 11/28/2026
GPAC before 26.07.0 contains a path traversal vulnerability in the httpout filter that allows unauthenticated remote attackers to read files outside the rdirs root by sending unnormalized request paths. Attackers can send GET or HEAD requests containing ../ or %2e%2e%2f sequences to read configuration files, TLS private keys, or credentials readable by the gpac process.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/28/2026
The vulnerability identified in GPAC versions prior to 26.07.0 represents a critical path traversal flaw within the httpout filter component of the media processing framework. This security defect allows unauthenticated remote attackers to bypass intended access controls and read arbitrary files from the underlying file system, extending beyond the boundaries defined by the rdirs configuration root directory. The core technical issue stems from insufficient normalization or sanitization of incoming HTTP request paths before they are processed for file retrieval operations. When a client sends an HTTP GET or HEAD request containing path traversal sequences such as ../ or their URL-encoded equivalents like %2e%2e%2f, the application fails to properly resolve these relative references against the designated root directory. Consequently, the server interprets these maliciously crafted paths as valid file locations, leading to the disclosure of sensitive data stored outside the intended sandboxed environment.
From a technical perspective, this flaw is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory, which highlights the failure to validate and restrict user-supplied input to ensure it remains within an expected directory structure. The vulnerability exploits the standard behavior of file system APIs that interpret relative path components by moving up one level in the hierarchy for each ../ sequence encountered. Because GPAC processes these requests without adequate validation or canonicalization checks, attackers can construct payloads that traverse upward from the rdirs root to access parent directories and beyond. This lack of input sanitization is particularly dangerous because it does not require any form of authentication, making it a remote code execution vector for data exfiltration rather than just system compromise.
The operational impact of this vulnerability is severe due to the nature of files typically accessible by media server processes. Attackers can exploit this flaw to read configuration files that may contain database credentials, API keys, or other sensitive application settings. More critically, if the GPAC process has access to TLS private keys used for securing communications, an attacker could retrieve these cryptographic materials. Possession of a private key allows for man-in-the-middle attacks, decryption of previously captured traffic, and impersonation of the server itself. Additionally, any credentials or secrets readable by the gpac user account on the host system are at risk, potentially leading to lateral movement within the network if those credentials have broader privileges elsewhere in the infrastructure.
This vulnerability aligns with MITRE ATT&CK technique T1083: File and Directory Discovery, where adversaries use techniques to enumerate files and directories for further exploitation. The ability to read arbitrary files is often a precursor to more advanced attacks such as credential dumping or configuration manipulation. To mitigate this risk, organizations running GPAC must immediately upgrade to version 26.07.0 or later, which includes the necessary fixes for path normalization in the httpout filter. In environments where an immediate patch is not feasible, administrators should implement strict input validation at a reverse proxy level before requests reach the application server. This involves rejecting any HTTP request paths that contain sequences indicative of directory traversal, such as ../ or their encoded variants. Furthermore, adhering to the principle of least privilege by ensuring the gpac process runs with minimal file system permissions can limit the scope of data exposure even if an exploitation attempt succeeds. Regular security audits and static code analysis should also be employed to detect similar path handling issues in other components of the media processing pipeline.