CVE-2026-135705

Executive Summary

FFmpeg versions prior to 9.1 contain a stack out‑of‑bounds read in the function ff_h264_parse_framesize() within libavformat/rtpdec_h264.c. When an SDP a=framesize attribute omits the height field, the routine calls atoi() on a buffer that may not be null‑terminated, causing the read to extend beyond the intended bounds. This flaw can lead to application crashes or the exposure of stale stack data, potentially leaking sensitive information. The issue is mitigated by upgrading to FFmpeg 9.1 or later, which corrects the parsing logic.


Authoritative CVE Metadata

  • CVSS Base Score: 6.9 (MEDIUM)
  • Status: Analyzed
  • Last Modified: 27-11-26

Original Description

FFmpeg before 9.1 contains a stack out-of-bounds read vulnerability in ff_h264_parse_framesize() in libavformat/rtpdec_h264.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.