CVE-2026-137909

FFmpeg before 9.1 NULL Pointer Dereference via XSUB Encoder Empty Subtitles

Medium published · updated

5.7
CVSS score out of 10 · NVD (1a4f025a-074d-4105-b4e2-52bd8eabe2ea)

Description

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.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
ffmpeg ffmpeg 0 → <9.19.1 CVE.org

References