CVE-2026-136191 in GPAC
Summary
by MITRE • 11/24/2026
GPAC through 26.07.0 contains an infinite loop vulnerability in gf_rtsp_do_deinterleave that allows malicious RTSP servers to hang clients by sending non-RTSP, non-interleaved data. Attackers can answer a client request with a few bytes not starting with '$', 'RTSP', or 'HTTP', causing the RTSP client thread to spin forever and consume a full CPU core.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/24/2026
The vulnerability identified in GPAC version 26.07.0 represents a critical denial of service risk within its Real Time Streaming Protocol (RTSP) implementation, specifically located in the gf_rtsp_do_deinterleave function. This flaw stems from an insufficient validation mechanism when processing incoming network data streams. The RTSP protocol relies on interleaved frames to multiplex control and media traffic over a single TCP connection, where each frame is prefixed by specific identifiers such as '$', 'RTSP', or 'HTTP' depending on the channel type. However, the software fails to properly handle scenarios where an attacker sends non-RTSP data that does not begin with these expected prefixes. Instead of rejecting the malformed input or handling it gracefully, the application enters an infinite loop within the deinterleaving logic. This behavior allows a malicious RTSP server to exploit the client by responding to standard connection requests with minimal payloads consisting of bytes that do not match the expected protocol headers.
From a technical perspective, this issue is classified as CWE-835, which denotes a Loop with Unreachable Exit Condition or Infinite Loop. The root cause lies in the lack of boundary checks and state validation within the parsing routine. When the client receives data lacking the correct prefix characters, the internal pointer management logic fails to advance correctly or terminate the processing cycle. Consequently, the RTSP client thread becomes trapped in a continuous execution loop that consumes one full CPU core indefinitely. This resource exhaustion is immediate and severe, effectively rendering the application unresponsive without requiring external intervention such as process termination. The simplicity of the exploit vector means that even low-skilled attackers can leverage this flaw by crafting simple network packets containing arbitrary non-compliant data to trigger the hang condition against any system running the affected GPAC version.
The operational impact of this vulnerability is significant, particularly for applications relying on stable media streaming and real-time communication services built upon GPAC. A successful exploitation results in a complete denial of service for the client application due to CPU saturation. In environments where multiple concurrent connections are managed by a single process or thread pool, this hang condition can lead to cascading failures as other threads become blocked waiting for resources held by the hung RTSP handler. This aligns with MITRE ATT&CK technique T1499, Endpoint Denial of Service, specifically under the sub-technique of resource exhaustion via application layer attacks. The ability to cause a hang through minimal network interaction makes this vulnerability particularly dangerous in public-facing services or peer-to-peer streaming architectures where clients may connect to untrusted or compromised servers.
Mitigation strategies should focus on immediate patching and defensive coding practices until official updates are deployed by the GPAC maintainers. Administrators must update their installations to a version that includes fixes for the gf_rtsp_do_deinterleave function, ensuring that proper input validation is enforced before processing incoming streams. For organizations unable to immediately upgrade, network-level controls such as deep packet inspection firewalls can be configured to detect and block RTSP traffic containing malformed headers or non-standard payload structures. Additionally, implementing resource limits on client applications, including CPU usage caps and thread timeout mechanisms, can help mitigate the impact of this vulnerability by preventing a single malicious connection from monopolizing system resources indefinitely. Security teams should also monitor for unusual spikes in CPU utilization associated with media processing services as an indicator of potential exploitation attempts.