FFmpeg before 9.1 contains a NULL pointer dereference vulnerability in xsub_encode() in libavcodec/xsubenc.c that only warns when a subtitle has no rectangles and then dereferences rects[0]. Attackers can supply crafted PGS or DVB subtitles that decode to empty subtitle events, crashing applications that pass decoded subtitles directly to the XSUB encoder.
CVE-2026-137909
CVSS base score
4.7 (v3.1)
Severity
MEDIUM
Attack vector
Local
Weakness
CWE-476
Last modified
December 3, 2026
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
Affected products
ffmpeg ffmpeg
References
- github.com Product
- github.com Product
- github.com Patch