FFmpeg through 9.0.2 contains an out-of-bounds read vulnerability in the SGI encoder's encode_frame() in libavcodec/sgienc.c, where unsigned size variables mis-handle negative linesize frames. Attackers can supply a video whose display matrix triggers autorotate vflip, so transcoding to SGI images reads pixel data far outside the frame and crashes the process.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"ffmpeg:ffmpeg": [
"<= 9.0.2"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125261",
"id": "CVE-2026-125261",
"imported": "2026-12-02T20:13:53.535Z",
"modified": "2026-11-25T15:08:37.010Z",
"published": "2026-11-09T20:18:12.513Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125261"
},
{
"html_url": "https://github.com/advisories/GHSA-9vrv-58pr-qmj5",
"id": "GHSA-9vrv-58pr-qmj5",
"imported": "2026-12-02T20:14:53.580Z",
"modified": "2026-11-09T21:32:06Z",
"published": "2026-11-09T21:32:05Z",
"url": "https://api.github.com/advisories/GHSA-9vrv-58pr-qmj5"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 ≤9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120211",
"id": "EUVD-2026-120211",
"imported": "2026-12-02T20:13:54.639Z",
"modified": "2026-11-14T02:12:35Z",
"published": "2026-11-09T19:12:03Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120211"
}
]
}