CVE-2026-135705: FFmpeg before 9.1 Stack Out-of-Bounds Read via ff_h264_parse_framesize()
FFmpeg before 9.1 contains a stack out-of-bounds read vulnerability in ffh264parseframesize() in libavformat/rtpdech264.c when parsing an SDP a=framesize attribute lacking a height. Attackers controlling an RTSP server DESCRIBE response or a crafted .sdp file can make atoi() read past the line buffer, crashing clients or parsing stale stack bytes.
Affected Software
Event History
Frequently Asked Questions
What conditions are required for exploitation?
A user must cause an affected FFmpeg client to parse SDP containing an H.264 a=framesize attribute with no height value. The malicious SDP can be delivered by an attacker-controlled RTSP server in its DESCRIBE response or through a crafted .sdp file.
Which deployments are most exposed?
Clients that connect to untrusted RTSP servers or open SDP files from untrusted sources are exposed. The provided data does not identify any affected default configuration beyond parsing such attacker-controlled SDP input.
What is the likely impact if the issue is triggered?
The out-of-bounds read can crash the client, causing denial of service. It may also cause parsing of stale bytes from the stack.
How can exposure be reduced before upgrading?
Avoid opening untrusted .sdp files and restrict RTSP connections to trusted servers or otherwise validate SDP content before it reaches FFmpeg. In particular, reject H.264 a=framesize attributes that lack a height.