CVE-2026-65706: FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing

Published Jul 23, 2026
·
Updated

FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the vfswaprect video filter that allows attackers to corrupt heap memory by supplying a crafted NV12 video frame with odd width dimensions. The filterframe() function reuses a temporary row buffer sized for plane 0's single-byte pixel step across all planes, causing an 18-byte memcpy into a 17-byte heap allocation when processing the two-byte-per-sample interleaved chroma plane of a 17x16 NV12 frame, resulting in heap corruption and process crash with potential for code execution.

Affected Software

1 affected component
FFmpeg vf_swaprect video filter>=3.0<=8.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ffmpeg/vf_swaprect to a version that resolves this vulnerability.

    Fixed in 8.1.2

Event History

Jul 23, 2026
CVE Published
via MITRE·07:05 PM
Data Sourced
via MITRE·07:05 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-65706?

CVE-2026-65706 has a severity score of 7.8, categorized as high.

2

How do I fix CVE-2026-65706?

To fix CVE-2026-65706, upgrade FFmpeg to a version greater than 8.1.2.

3

What is the risk associated with CVE-2026-65706?

CVE-2026-65706 poses a risk of heap memory corruption through crafted NV12 video frames.

4

Which versions of FFmpeg are affected by CVE-2026-65706?

FFmpeg versions 3.0 through 8.1.2 are affected by CVE-2026-65706.

5

What type of vulnerability is CVE-2026-65706?

CVE-2026-65706 is an out-of-bounds write vulnerability in the vf_swaprect video filter.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-65706 - FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing - SecAlerts