PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-125257 FFmpeg CVE debrief

A heap overflow vulnerability exists in FFmpeg through version 9.0.2 in the get_exponent_dynamic() function within libavcodec/nellymoserenc.c. This vulnerability allows an attacker to supply crafted audio to applications that encode Nellymoser with trellis enabled, potentially leading to adjacent heap memory overwrite. The vulnerability is triggered when idx equals OPT_SIZE, allowing an attacker to overwrite adjacent heap memory. Defenders should assess exposure and prioritize updates or compensating controls.

Vendor
FFmpeg
Product
Unknown
CVSS
HIGH 7.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-09
Original CVE updated
2026-11-14
Advisory published
2026-11-09
Advisory updated
2026-11-14

Who should care

Defenders responsible for FFmpeg installations, particularly those using Nellymoser encoding with trellis, should assess exposure and prioritize updates or compensating controls. This includes operators, administrators, and security teams managing systems that utilize FFmpeg for audio encoding. Those responsible for systems using FFmpeg, especially with Nellymoser encoding and trellis enabled, should verify their installations and prioritize updates or

Why it matters

Defenders should care about CVE-2026-125257 because it is a high-severity vulnerability in FFmpeg that could lead to heap memory overwrite and potential code execution or denial of service. Those responsible for systems using FFmpeg, especially with Nellymoser encoding and trellis enabled, should verify their installations and prioritize updates or compensating controls.

  • Potential heap memory overwrite from crafted audio input
  • Possible code execution or denial of service through exploitation
  • Requires verification of FFmpeg version and Nellymoser encoding usage
  • Remediation priority for applications using affected FFmpeg versions

Technical summary

The vulnerability exists in the get_exponent_dynamic() function within libavcodec/nellymoserenc.c of FFmpeg through version 9.0.2. An off-by-one error occurs when idx equals OPT_SIZE, allowing an attacker to overwrite adjacent heap memory by supplying crafted audio to applications encoding Nellymoser with trellis enabled. The vulnerability can be triggered by supplying crafted audio input, potentially leading to heap memory overwrite and potential code execution or denial of service. Defenders should prioritize verifying and updating FFmpeg installations to prevent potential exploitation.

Defensive priority

Defenders should prioritize verifying and updating FFmpeg installations to prevent potential exploitation.

Recommended defensive actions

  • Verify FFmpeg version and update to a fixed version if available
  • Review and restrict audio input to applications encoding Nellymoser with trellis enabled
  • Monitor for and respond to potential exploitation attempts
  • 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
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is described in the CVE record and source item from the GitHub Advisory Database. Details are also provided in references from FFmpeg's commit history and pull requests. The GitHub Advisory Database provides additional context on the vulnerability, including affected versions and potential impact. However, specific details about the vulnerability, such as the affected scope and severity, should be verified with the official CVE record and vendor guidance.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-125257 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-125257

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-125257 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-125257

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • FFmpeg through 9.0.2 contains an off-by-one heap overflow vulnerability in get_exponent_dynamic(

    Unverified legacy reference

    URL: https://github.com/advisories/GHSA-76g4-x73x-7v54

    github_advisory_database

  • Source reference

    Unverified legacy reference

    URL: https://github.com/FFmpeg/FFmpeg/commit/733bec3e19759520ccdbeb6c3c0cae280bbe6dc5

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24471

    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/nellymoserenc.c

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-overflow-via-nellymoser-encoder-trellis-search

    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.