Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Vulnerabilities

CVE-2026-125174 — FFmpeg

Medium · CVSS 6.8EPSS 0.2% First seen November 09, 2026

One of 121 FFmpeg vulnerabilities published together by NVD.

Vulnerabilities

Research article

FFmpeg HAP decoder NULL pointer dereference from a masked allocation failure (CVE-2026-125174)

CVECVE-2026-125174
Vendor and productFFmpeg
PublishedNovember 12, 2026 07:21 UTC
Research cut-offNovember 12, 2026 07:12 UTC
UpdatedNovember 23, 2026 16:45 UTC
Sources reviewed3: NVD record (last modified 2026-11-10); CISA KEV catalog; FIRST EPSS (2026-11-10)

Update — November 23, 2026

Updates come from the CVE's records (NVD, CISA, GitHub, FIRST) as they change, newest first. The article below is as it was published on November 12, 2026.

Executive summary

CVE-2026-125174 is a NULL pointer dereference in the HAP video decoding path of FFmpeg's libavcodec, in the function ffhapsetchunkcount(), where a shadowed return variable hides a failed memory reallocation [1]. The record describes the result as an application crash caused by an oversized chunk count in a malformed HAP frame [1]. The NVD record carries a CVSS 4.0 score of 6.8 MEDIUM with vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X and a CVSS 3.1 score of 5.5 MEDIUM with vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, both from a secondary scorer [1]. The CVE record states that FFmpeg versions before 8.1.3 and versions from 9.0 before 9.0.2 are affected, with fixes in 8.1.3 and 9.0.2 [1]. The record is still Awaiting Analysis, the CVE is not listed in the CISA KEV catalog as of 2026-11-12, and the FIRST EPSS estimate is 0.0018 [1, 2, 3]. Nothing in the reviewed sources establishes exploitation in the wild, and the sources do not establish code execution. The most important immediate action is to inventory FFmpeg builds and any application embedding libavcodec, then upgrade to 8.1.3 or 9.0.2 or later on the matching branch, prioritising services that decode untrusted HAP media [1].

Key points

  • CVE-2026-125174 is a NULL pointer dereference in FFmpeg's libavcodec HAP decoder, caused by a shadowed return variable that masks allocation failures [1].
  • CVSS 4.0 scores it 6.8 MEDIUM (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X); CVSS 3.1 scores it 5.5 MEDIUM (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H); both are secondary scores [1].
  • Affected: FFmpeg before 8.1.3 and 9.0 up to but not including 9.0.2; fixed in 8.1.3 and 9.0.2 [1].
  • The documented impact is application crash (availability); the pack does not establish code execution or data access [1].
  • Not listed in CISA KEV as of 2026-11-12; EPSS is 0.0018; no confirmed exploitation is established by the pack [2, 3].
  • Immediate action: inventory FFmpeg and embedded libavcodec builds, restrict untrusted HAP input, and upgrade to 8.1.3 or 9.0.2 or later [1].

Vulnerability identification

FieldValueSource
CVE IDCVE-2026-125174S1
VendorFFmpeg project; the affected-version ranges are published by the CVE Numbering Authority in the recordS1
Product and componentFFmpeg, libavcodec, HAP decoder function ffhapsetchunkcount() in libavcodec/hap.cS1
Record statusAwaiting AnalysisS1
Published2026-11-09T19:16:52S1
Last modified2026-11-10T21:46:26S1
CWECWE-252 (Unchecked Return Value)S1
CVSS 4.06.8 MEDIUM; CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; scored by disclosure@vulncheck.com (Secondary)S1
CVSS 3.15.5 MEDIUM; CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H; scored by disclosure@vulncheck.com (Secondary)S1
Related identifiersCommit f8c4c6400e835bf65e8b9cc12aba9e5c4d1c818c in the FFmpeg repository; pull request 24487 on the FFmpeg code host; a reference to the n9.0.1 tag of hap.c; a VulnCheck advisoryS1
CISA KEVNot listed as of 2026-11-12S2
EPSS0.0018 (0.18%), percentile 0.0786, dated 2026-11-10S3

Scoring discrepancy: both CVSS scores come from the same secondary scorer, and they differ in how user interaction is characterised. The 4.0 vector uses UI:P (passive), while the 3.1 vector uses UI:R (required) [1]. No primary scorer, NVD analysis or vendor score is present in the pack, so the reviewed sources do not settle which interpretation is correct [1]. The record's CWE mapping is CWE-252 only [1].

Technical background

FFmpeg is an open-source multimedia framework. Its libavcodec library provides the encoders and decoders that turn compressed audio and video into raw frames. HAP is a video codec family designed for real-time playback, and the libavcodec HAP decoder lives in libavcodec/hap.c [1].

HAP-encoded frames are divided into chunks. The decoder needs a chunk table, which it allocates in memory, before it can process each chunk. The chunk count is read from the frame data, so it is an input that comes from the media file rather than from the program itself [1]. Memory allocation can fail, and a well-written decoder checks the result of each allocation and stops before using a table that was never created. Terms used below: a NULL pointer is a memory address value that means no object is present, and dereferencing it means trying to read or write through that address, which normally terminates the process [Analyst assessment].

Trust boundary: the media file is untrusted input when it originates from users, uploads, network streams or third-party content. The decoder runs with the privileges of the process that embeds it, so a crash affects that process [Analyst assessment].

Vulnerability description

The record describes a security failure in which a memory allocation failure is not propagated because a return variable is shadowed inside ffhapsetchunkcount(). The decoder then writes through a table that is NULL, causing a crash [1]. The security property affected is availability: the record documents a crash of the consuming application [1].

What an attacker can cause, per the record: a crash of the application that decodes the crafted frame [1]. The conditions that matter are that the frame must reach the HAP decoder, the chunk count must be large enough that allocation fails, and the decoder must run in the affected version range [1].

What the sources do not establish: the record and the CVSS vectors do not describe confidentiality or integrity loss, and the pack contains no source showing code execution, memory disclosure or privilege escalation. Any such outcome would be unverified [1].

Root cause analysis

Confirmed (per the CVE record): the function ffhapsetchunkcount() in libavcodec/hap.c contains a shadowed return variable, and that shadowing masks reallocation failures. The consequence is a NULL chunk table that is then written to [1]. The CWE classification, Unchecked Return Value, is consistent with this description [1].

Analyst assessment: the defect is most likely a local variable that hides the outer status variable, so the check that should catch a failed reallocation tests a value that never received the allocation result. The code then proceeds as if the table exists. The record does not show the code fix itself, so this explanation is inferred from the description and the CWE mapping, not from the diff [1].

Why existing controls may not catch it: compilers can warn about shadowed variables, but such warnings only help if they are enabled and treated as errors, and the pack does not state whether the project's build configuration flags this pattern. Not established by the reviewed sources.

Technical mechanics

Illustrative flow based on the record's description; the exact code is not reproduced in the pack:

  1. The decoder receives a HAP-encoded frame from a container or stream, which may come from an untrusted source [1].
  2. ffhapsetchunkcount() reads the chunk count from the frame header or data [1].
  3. The function requests memory for the chunk table sized by that count [1].
  4. The allocation fails because the requested size is oversized or unavailable [1].
  5. The failure is written to a shadowed variable, so the outer status is never updated and the failure is not propagated [1].
  6. The function returns as if successful, and the caller or the same function writes to the chunk table, which is NULL [1].
  7. The write through the NULL pointer raises a fault, and the host application terminates [1].
Frame input (untrusted)
   |
   v
ffhapsetchunkcount(): read chunk count
   |
   v
allocation of chunk table  --fails-->  error stored in SHADOWED variable
   |                                         |
   |                               outer status unchanged
   v                                         |
 write through NULL table  <-----------------+
   |
   v
NULL dereference -> application crash

Control that should prevent this: checking the return value of the allocation in the same scope that holds the status variable and returning an error before any write [Analyst assessment]. Input validation of the chunk count against the frame size before allocation is a further defence [Analyst assessment].

Attack surface and exploitation prerequisites

PrerequisiteStatusSource
Access vectorLocal per the CVSS AV:L metric (4.0 and 3.1 both)S1
AuthenticationNone required (PR:N)S1
User interactionPassive (UI:P) in CVSS 4.0; required (UI:R) in CVSS 3.1S1
Required featureDecoding of HAP video; the record does not state whether a default build enables the HAP decoderS1
Attacker positionThe record does not establish how a malicious frame reaches the decoderS1
Environmental dependenciesAllocation must fail for the requested size; the record does not give the thresholdS1

The vector values for access vector and interaction are taken from the scorer, and the delivery path is not established by the reviewed sources. The local vector does not by itself prove that a user has to open a file; that depends on how an application ingests media, which is unknown from the pack [Analyst assessment].

Exploitation scenarios and attack lifecycle

Illustrative scenario: a media-processing service that transcodes uploaded clips decodes HAP content supplied by an external party. A crafted frame reaches the decoder and crashes the worker process, causing a denial of service for that job [Illustrative, based on S1].

Illustrative scenario: a desktop player opens a HAP file from an email attachment. The application crashes when the file is opened [Illustrative, based on S1].

Defensive opportunities: restrict which services accept HAP input; run decoders in isolated, restarted worker processes; alert on repeated abnormal terminations of media workers; upgrade to a fixed build. No source documents any real attack chain, attacker group or post-exploitation activity.

Impact analysis

AreaTechnically documented in packPlausible downstream consequence (not established)
ConfidentialityNone in CVSS 4.0 or 3.1 (VC:N, C:N) [1]None established
IntegrityNone in CVSS 4.0 or 3.1 (VI:N, I:N) [1]None established
AvailabilityHigh in both vectors (VA:H, A:H); crash of the application [1]Interrupted transcoding, playback or processing jobs; repeated restarts
Authentication and authorizationNot affected per the vectors (PR:N, no scope change in 3.1) [1]None established
Privilege boundariesScope unchanged in 3.1 (S:U); the record does not describe escalation [1]None established
Data and privacyNot described in the record [1]None established
Business operationsNot described in the recordDepends on whether the decoder runs in a production media pipeline
Regulatory or contractualNot established by the reviewed sourcesDepends on the organisation's obligations

Affected products and versions

VendorProduct or componentAffected versionsFixed versionSource and qualification
FFmpeglibavcodec HAP decoderBefore 8.1.38.1.3Published in the CVE record by the CNA; not yet verified against a vendor advisory in the pack [1]
FFmpeglibavcodec HAP decoder9.0 up to but not including 9.0.29.0.2Same as above; the record's range is stated as affected at or above 9.0 and below 9.0.2 [1]

The record's description refers to 9.x versions before 9.0.2, which is consistent with the range above [1]. The reference list includes the n9.0.1 tag of hap.c, but the pack does not say whether 9.0.1 is the only affected 9.x release. Versions between 8.1.3 and 9.0 are not addressed in the record, and no complete affected range beyond these two statements is published in the pack [1]. Configuration exposure: whether a given build includes the HAP decoder is not established by the pack; the record does not list known exclusions [1].

Exploitation and threat intelligence status

  • Confirmed exploitation in the wild: not established by the reviewed sources [1, 2].
  • CISA KEV: not listed as of 2026-11-12. The website read the full catalog. This is not evidence that the CVE has not been exploited [2].
  • Public proof of concept: not established by the pack. The references list a commit, a pull request and a third-party advisory, but no exploit reference is identified as such [1].
  • EPSS: 0.0018 (0.18%) probability of exploitation activity in the next 30 days, percentile 0.0786, dated 2026-11-10. This is a statistical estimate, not evidence of exploitation [3].
  • Threat actors, campaigns and sectors: not established by the reviewed sources.

Indicators of compromise

Not established by the reviewed sources. The pack provides no file hashes, domains, IP addresses, URLs, process names, command lines or log events for this CVE. Any indicator should be validated before use, because indicators go stale and none has been supplied here.

Detection and exposure assessment

  1. Inventory: list every host, container image and application package that bundles FFmpeg or libavcodec, including vendored copies inside third-party products. Owner: platform or asset team.
  2. Version check: on hosts where the FFmpeg command-line tool is installed, run the read-only command ffmpeg -version and compare the reported version with 8.1.3 and 9.0.2. Prerequisite: the tool must be on the PATH. Expected output: a banner beginning with the ffmpeg name and a version string. Limitation: the command-line version may not reflect a libavcodec library embedded in another application, so the library version must be checked separately [Analyst assessment].
  3. Package manager: query the installed package version with the native package manager of the operating system and compare it with the vendor's fixed release for the branch. Limitation: distribution packages may backport fixes without changing the upstream version string, so the vendor or distribution advisory must be consulted [Analyst assessment].
  4. Feature check: determine whether the HAP decoder is compiled into the build. The pack does not give a read-only command for this; the build configuration must be reviewed. Not established by the reviewed sources.
  5. Logs and telemetry: review crash reports and restart events for media-processing workers, looking for abnormal termination in processes that handle HAP content. The pack gives no specific log events; the signal and fault records depend on the platform [Analyst assessment].

A version check is not proof of exploitability. A vulnerable version with no reachable HAP input is a lower operational exposure, but it still requires the upgrade.

Immediate mitigation

  1. Restrict HAP input: block or quarantine HAP-encoded files from untrusted sources at the upload gateway or workflow entry point until the build is upgraded. Protects against: the reachable input path. Limitation: format identification must be reliable. Side effect: legitimate HAP content is blocked. Verify: test uploads of a known-safe HAP sample from an internal source are accepted or rejected as intended [Analyst assessment].
  2. Isolate decoding: run decoding in a separate, disposable worker that the supervisor restarts automatically, so a crash does not take down a larger service. Protects against: availability loss from a crash. Limitation: it does not prevent the crash. Verify: confirm the supervisor restarts the worker after a forced test termination in a non-production environment [Analyst assessment].
  3. Least privilege: ensure media workers run with minimal filesystem and network permissions, so that a crash does not expose secrets. Verify: review service account permissions for media workers [Analyst assessment].
  4. Monitoring: alert on repeated abnormal terminations of media workers within a short window. Verify: confirm the alert fires in a test environment [Analyst assessment].

Permanent remediation

Vendor-supported fix: upgrade FFmpeg to 8.1.3 or later on the 8.x line, or to 9.0.2 or later on the 9.x line [1]. The record cites commit f8c4c6400e835bf65e8b9cc12aba9e5c4d1c818c and pull request 24487 as related material [1]. The pack does not include the vendor advisory text, the release notes or the patch content, so the upgrade prerequisites, configuration changes and restart requirements are not established by the reviewed sources.

Recommended steps (analyst assessment): rebuild or redeploy the affected applications against the fixed libavcodec, restart all media workers, and confirm the library version in each deployed artefact. Downstream products that embed libavcodec require their own vendor updates; the pack does not identify them.

Workarounds and compensating controls

Not established by the reviewed sources: no vendor workaround is documented in the pack. Compensating controls (analyst assessment): input gating of HAP content, process isolation with automatic restart, and monitoring of worker crashes. These reduce exposure and impact but leave the vulnerable code in place, so they are not equivalent to a fixed release. The residual risk is that any untrusted HAP input reaching a vulnerable build can still crash the worker.

Validation and verification

  1. Confirm the installed version of the FFmpeg command-line tool with ffmpeg -version, and confirm that it is 8.1.3 or later on the 8.x line or 9.0.2 or later on the 9.x line.
  2. Confirm the libavcodec version used by each embedded application, using that application's own version reporting or the package manager of its container image.
  3. Confirm that HAP input is handled as intended by running regression tests with known-safe HAP samples from an internal source.
  4. Confirm that media workers restart correctly after a forced test termination in a non-production environment.
  5. Review crash and restart logs for the previous 30 days and record any abnormal terminations for investigation.
  6. Confirm that compensating controls remain in place until the upgrade is verified on every host.
  7. Record the evidence: host identifier, version string, owner, date, and any exceptions with a planned remediation date.

A single version check does not establish that a system is secure. Validation must cover every deployed copy of the library, not only the command-line tool.

Incident response

If repeated crashes of media workers are observed and HAP input is suspected: triage and scope by identifying which workers, hosts and input sources are involved; contain by isolating the input source and preventing further processing of the suspect file; preserve crash dumps, logs and the original input file without modifying them; review logs for other anomalous activity on the same hosts; rotate credentials only if other evidence shows that secrets were exposed, since the pack shows no evidence of code execution or data access; then patch, restart, monitor, and document lessons learned. Follow the organisation's incident response plan. No source documents exploitation, so the response is precautionary unless local evidence shows otherwise [Analyst assessment].

Security hardening and prevention

  • Secure development (defence-in-depth, analyst assessment): enable compiler warnings for shadowed variables and treat them as build errors in libavcodec and in downstream builds.
  • Error handling: require that every allocation result is checked in the same scope that propagates the error, and add regression tests that force allocation failure for oversized HAP chunk counts.
  • Input validation: validate chunk counts against the frame size before allocation.
  • Isolation: run media decoders in sandboxed worker processes with restricted privileges.
  • Patch management: track FFmpeg and libavcodec releases in the software inventory and apply vendor fixes on a defined schedule.
  • Logging: forward worker crash events to central logging with host, process and input source identifiers.

Risk assessment

Technical severity: the CVSS scores are 6.8 MEDIUM (4.0) and 5.5 MEDIUM (3.1), both from a secondary scorer, and the documented impact is availability only [1]. Exposure: depends on whether an organisation runs vulnerable builds that decode untrusted HAP input, which is not established from the pack. Exploit prerequisites: local access per the vector, with an interaction element that differs between the two scores [1]. Evidence of exploitation: none in the pack; not in KEV; EPSS 0.0018 [2, 3]. Business impact: interruption of media processing for affected services. Existing controls and residual risk: unknown for each environment.

Recommended priority (analyst assessment, organisation-specific and not a CVSS score): high for services that accept HAP input from untrusted parties, because the fix is available and the crash is documented; medium for internal-only use; the organisation should set its own assumptions and record them. The Awaiting Analysis status means the NVD assessment may change, so the record should be rechecked.

Conclusion

The core flaw is a masked allocation failure in the HAP chunk count routine of FFmpeg's libavcodec, which leads to a NULL dereference and a crash [1]. Teams that operate FFmpeg or embed libavcodec should act, starting with the highest-exposure media workers. The most urgent mitigation is to restrict and isolate untrusted HAP input. The permanent fix is an upgrade to 8.1.3 or 9.0.2 or later on the matching branch [1]. The issue can be closed when every deployed copy of the library reports a fixed version, validation evidence is recorded, and the NVD and vendor records are rechecked for changes in status or affected ranges [1].

Remediation checklist

  1. Inventory every host, container image and application that bundles FFmpeg or libavcodec, including vendored copies, and record the version of each [1].
  2. Prioritise services that decode HAP input from untrusted parties, such as upload and transcoding pipelines [S1, Analyst assessment].
  3. Restrict or quarantine HAP-encoded files from untrusted sources at the upload gateway until the build is upgraded; verify with known-safe internal test samples [S1, Analyst assessment].
  4. Isolate media decoding in worker processes with automatic restart so a crash does not take down the wider service; verify restart with a forced test termination in non-production [Analyst assessment].
  5. Upgrade FFmpeg on the 8.x line to 8.1.3 or later, and on the 9.x line to 9.0.2 or later [1].
  6. Upgrade or rebuild every downstream application that embeds libavcodec against the fixed library, and restart its media workers [S1, Analyst assessment].
  7. Run ffmpeg -version on hosts with the command-line tool and confirm the reported version; separately verify embedded library versions because the command-line version may not reflect them [S1, Analyst assessment].
  8. Check the distribution or vendor advisory for backported fixes before treating a version string as vulnerable or fixed; the pack does not include one [Analyst assessment].
  9. Alert on repeated abnormal terminations of media workers and review crash logs for the previous 30 days [Analyst assessment].
  10. Record evidence for each host (version, owner, date, exceptions) and recheck the NVD record for status or range changes, since it is still Awaiting Analysis [1].

Evidence gaps

  • Vendor advisory or release notes for the fix are not in the pack; the fixed-version claims rest on the CVE record alone, which would be settled by the FFmpeg project advisory or release notes [1].
  • The complete affected version range is not established; the record lists two ranges, and the status of versions between 8.1.3 and 9.0 is not addressed. Settled by an authoritative vendor version statement [1].
  • The root cause is confirmed only at the level of the CVE description; the code change itself is not in the pack. Settled by reviewing the referenced commit content [1].
  • The delivery path for a malicious frame and whether default builds enable the HAP decoder are not established. Settled by the vendor's build configuration documentation and an application-level review [1].
  • The two CVSS scores differ on user interaction (UI:P versus UI:R) and both are from a secondary scorer; a primary NVD analysis would settle this, and the record is still Awaiting Analysis [1].
  • No indicators of compromise are provided; no sources give file hashes, network indicators or log events [1].
  • No exploit or proof-of-concept reference is identified as such in the pack, and no threat intelligence on targeting is provided [1, 3].
  • Exploitation status in the wild is not established; KEV absence is not evidence of non-exploitation [2].
  • Whether the CVSS 3.1 metric or the 4.0 metric better reflects the risk for a given product is not established, and no organisation-specific context is provided.

References

  1. CVE-2026-125174 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125174. Accessed 2026-11-12. CVE identity, record status and dates, official description, CWE-252 mapping, CVSS 4.0 and 3.1 scores and vectors with the secondary scorer, the vendor affected and fixed version ranges, the libavcodec component and function, the related commit, pull request and reference identifiers, and the Awaiti
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12. CISA KEV status: the CVE is not listed as of 2026-11-12, and KEV absence is not evidence that exploitation has not occurred.
  3. EPSS score for CVE-2026-125174. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125174. Accessed 2026-11-12. FIRST EPSS estimate of 0.0018 with percentile 0.0786 dated 2026-11-10, and the statement that EPSS is a statistical estimate rather than evidence of exploitation.

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a NULL pointer dereference vulnerability in ff_hap_set_chunk_count() in libavcodec/hap.c, where a shadowed return variable masks reallocation failures. Attackers can supply a crafted Hap video frame with an oversized chunk count so the decoder writes through a NULL chunk table, crashing the application.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 6.8 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker without an account can exploit this with local access if a user views or visits something.

Attack from
local access (a logged-in user, or a malicious file opened on the device)
Attack complexity
low (no special conditions)
Special conditions
none
Login needed
no
User action needed
yes, a user must view or visit something
Impact
high on availability, none on confidentiality and integrity
Impact on other systems
none

Vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 5.5 from the CNA (vulncheck.com): CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
FFmpeg< 8.1.38.1.3
≥ 9.0, < 9.0.29.0.2

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

Affected

  • FFmpeg

Frequently asked questions

What is CVE-2026-125174?

CVE-2026-125174 is a NULL pointer dereference in the HAP video decoding path of FFmpeg's libavcodec, in the function ffhapsetchunkcount(), where a shadowed return variable hides a failed memory reallocation. The record describes the result as an application crash caused by an oversized chunk count in a malformed HAP frame. Weakness type: Unchecked Return Value (CWE-252).

How severe is CVE-2026-125174?

CVE-2026-125174 has a CVSS 4.0 base score of 6.8 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something.

Is CVE-2026-125174 being exploited?

Not as far as is known: CVE-2026-125174 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-125174?

FFmpeg < 8.1.3 (fixed in 8.1.3); FFmpeg ≥ 9.0, < 9.0.2 (fixed in 9.0.2).

How do I fix CVE-2026-125174?

Inventory every host, container image and application that bundles FFmpeg or libavcodec, including vendored copies, and record the version of each. Prioritise services that decode HAP input from untrusted parties, such as upload and transcoding pipelines [S1, Analyst assessment]. Restrict or quarantine HAP-encoded files from untrusted sources at the upload gateway until the build is upgraded; verify with known-safe internal test samples [S1, Analyst assessment].

Timeline & sources

References