PatchSiren cyber security CVE debrief
CVE-2026-125250 FFmpeg CVE debrief
A heap buffer overflow vulnerability exists in FFmpeg through version 9.0.2 in the GIF encoder's gif_image_write_image() function. This issue arises because the shrunk_buf is sized based on the first frame's linesize, allowing attackers to supply PAL8 video with a growing frame linesize mid-stream. This can cause remap_frame_to_palette() to write past shrunk_buf, corrupting the heap during GIF transcoding.
- Vendor
- FFmpeg
- Product
- Unknown
- CVSS
- HIGH 8.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-09
- Original CVE updated
- 2026-11-13
- Advisory published
- 2026-11-09
- Advisory updated
- 2026-11-13
Who should care
Defenders responsible for FFmpeg installations, particularly those using GIF transcoding functionality, should assess exposure and prioritize verification and updates to prevent potential heap corruption.
Why it matters
Defenders should care about CVE-2026-125250 because it allows attackers to cause heap corruption during GIF transcoding in FFmpeg, potentially leading to denial of service or arbitrary code execution. Verification and updates are necessary to prevent exploitation.
- Potential heap corruption during GIF transcoding.
- Possible denial of service due to heap corruption.
- Potential for attackers to execute arbitrary code via heap corruption.
- Need for verification and updates to prevent exploitation.
Technical summary
The vulnerability exists in the gif_image_write_image() function of the GIF encoder in FFmpeg through version 9.0.2. The issue arises from the improper sizing of the shrunk_buf based on the first frame's linesize, allowing attackers to cause a heap buffer overflow during GIF transcoding by supplying PAL8 video with a growing frame linesize mid-stream. This can lead to potential heap corruption, denial of service, or arbitrary code execution. Defenders should prioritize verifying and updating FFmpeg installations to prevent potential heap corruption during GIF transcoding. The vulnerability is confirmed in FFmpeg through version 9.0.2, and the issue is caused by improper sizing of the shrunk_buf based on the A
Defensive priority
Defenders should prioritize verifying and updating FFmpeg installations to prevent potential heap corruption during GIF transcoding.
Recommended defensive actions
- Verify and update FFmpeg installations to the latest version.
- Restrict GIF transcoding to trusted sources.
- Monitor for suspicious GIF transcoding activity.
- Implement heap corruption detection and prevention measures.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The vulnerability is confirmed in FFmpeg through version 9.0.2. The issue is caused by improper sizing of the shrunk_buf based on the first frame's linesize, allowing for heap buffer overflow during GIF transcoding.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-125250 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-125250
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-125250 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-125250
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
FFmpeg through 9.0.2 contains a heap buffer overflow in the GIF encoder's gif_image_write_image(
Unverified legacy reference
URL: https://github.com/advisories/GHSA-gm97-rxv6-cv4g
github_advisory_database
-
Source reference
Unverified legacy reference
URL: https://github.com/FFmpeg/FFmpeg/commit/26c2980980295e5516f308c5a2792d2a72e43eae
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25690
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/FFmpeg/FFmpeg
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/gif.c
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-gif-encoder-heap-buffer-overflow-via-shrunk-buf-remap
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.