{
  "id": "CVE-2026-65706",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-65706",
  "published_at": "2026-07-23T19:05:11.56Z",
  "title": "FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing",
  "vendor": "FFmpeg",
  "product": "FFmpeg",
  "cvss": {
    "score": 8.5,
    "source": "cna",
    "vector": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_swaprect video filter that allows attackers to corrupt heap memory by supplying a crafted NV12 video frame with odd width dimensions. The filter_frame() 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.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "FFmpeg",
        "product": "FFmpeg",
        "ranges": [
          "\u003e= 3.0, \u003c= 8.1.2"
        ],
        "fixed_in": [
          "a7e38b617b32f996beaa371bbf04b39907d7a527"
        ]
      }
    ],
    "upgrade": [
      "Upgrade FFmpeg to a7e38b617b32f996beaa371bbf04b39907d7a527 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
