CVE-2022-3341
Ffmpeg vulnerability analysis and mitigation

Overview

CVE-2022-3341 is a null pointer dereference vulnerability discovered in FFmpeg's decodemainheader() function within the libavformat/nutdec.c file. The vulnerability was disclosed on January 12, 2023, and affects multiple versions of FFmpeg. The flaw occurs because the function lacks a check of the return value of avformatnewstream(), which can trigger a null pointer dereference error (NVD, Ubuntu).

Technical details

The vulnerability exists in the decodemainheader() function of libavformat/nutdec.c where the code fails to verify the return value of avformatnewstream(). This oversight can lead to a null pointer dereference, causing the application to crash. The issue has been assigned a CVSS 3.1 base score of 5.3 (Medium), with attack vector being Network, attack complexity Low, and requiring no privileges or user interaction (Ubuntu).

Impact

When exploited, this vulnerability can cause a denial of service condition through application crash. The impact is primarily limited to availability, with no direct effect on confidentiality or integrity of the system (Ubuntu Security Notice).

Mitigation and workarounds

A fix has been implemented in FFmpeg through commit 9cf652c, which adds proper checking for the return value of avformatnewstream() and propagates the error code appropriately. Various Linux distributions have released patched versions, including Ubuntu 22.04 LTS (7:4.4.2-0ubuntu0.22.04.1+esm1), Ubuntu 20.04 LTS (7:4.2.7-0ubuntu0.1+esm1), and Debian 10 (7:4.1.11-0+deb10u1) (FFmpeg Commit, Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Ffmpeg vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59734HIGH8.7
  • FfmpegFfmpeg
  • ffmpeg
NoYesOct 06, 2025
CVE-2025-59733HIGH8.7
  • FfmpegFfmpeg
  • ffmpeg
NoYesOct 06, 2025
CVE-2025-59732HIGH8.7
  • FfmpegFfmpeg
  • ffmpeg
NoYesOct 06, 2025
CVE-2025-7700MEDIUM5.3
  • FfmpegFfmpeg
  • libavcodec57
NoYesNov 07, 2025
CVE-2025-12343N/AN/A
  • FfmpegFfmpeg
  • ffmpeg
NoYesOct 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management