CVE-2022-3341

Source
https://cve.org/CVERecord?id=CVE-2022-3341
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-3341.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-3341
Downstream
CGA (8)
DEBIAN (1)
JLSEC (1)
MGASA (1)
OESA (4)
openSUSE (1)
SUSE (3)
UBUNTU (1)
Related
Published
2023-01-12T00:00:00Z
Modified
2026-10-22T07:44:18Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
[none]
Details

A null pointer dereference issue was discovered in 'FFmpeg' in decode_main_header() function of libavformat/nutdec.c file. The flaw occurs because the function lacks check of the return value of avformat_new_stream() and triggers the null pointer dereference error, causing an application to crash.

Database specific
{
    "cna_assigner":  "fedora",
    "cwe_ids":  [
        "CWE-476"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3341.json"
}
References

Affected packages

Git / github.com/ffmpeg/ffmpeg

Affected ranges

Type
GIT
Repo
https://github.com/ffmpeg/ffmpeg
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "Fixed-in ffmpeg 5.1"
                },
                {
                    "last_affected":  "Fixed-in ffmpeg 5.1"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandaloneSingleVersion"
        },
        {
            "range":  [
                {
                    "fixed":  "9cf652cef49d74afe3d454f27d49eb1a1394951e"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

Fixed-in ffmpeg 5.*
Fixed-in ffmpeg 5.1
n5.*
n5.1-dev

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-3341.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "212714700687714782806110927416798275156",
            "length":  1304
        },
        "id":  "CVE-2022-3341-7bd7d9b3",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e",
        "target":  {
            "file":  "libavformat/nutdec.c",
            "function":  "nut_read_header"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "12906491528301950330056808785355663414",
                "76424333453171500676199213834035246984",
                "203494022266310686971057352550723705016",
                "13052012182376853825858264053725079068",
                "131228061223871305456284901214847639250",
                "333372060833506373861945745183155683304",
                "60434264573278572591382653163519097041",
                "68123171997916593828225792216335267989",
                "305721504112645504358781934941290050116",
                "227041948220225308580425041563422634931",
                "288431581750765352076620402669156110371",
                "317019860032823344116413789327366253880",
                "138144405539726247412790470779925534392",
                "176278491276011713736716859563389188667",
                "190890976758392512353778965706686771850",
                "110797133720430837899212760794560089640",
                "205461340203508466923070600963970238796",
                "43296001175390136536001579821771425024"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2022-3341-80733c23",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e",
        "target":  {
            "file":  "libavformat/nutdec.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "161495002188957486527608985501524411437",
            "length":  4733
        },
        "id":  "CVE-2022-3341-ae77536c",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e",
        "target":  {
            "file":  "libavformat/nutdec.c",
            "function":  "decode_main_header"
        }
    }
]
vanir_signatures_modified
"2026-10-22T07:44:18Z"