{"id":"CVE-2022-3341","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.","modified":"2026-04-16T00:00:15.226534638Z","published":"2023-01-12T15:15:10.007Z","related":["SUSE-SU-2023:0172-1","SUSE-SU-2023:0206-1","SUSE-SU-2023:2115-1","openSUSE-SU-2024:12636-1"],"database_specific":{"unresolved_ranges":[{"extracted_events":[{"last_affected":"10.0"}],"source":"CPE_FIELD","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"}]},"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00016.html"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2157054"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"0e15444aceca0e78f99f3d67758eb79d11b86599"},{"fixed":"9cf652cef49d74afe3d454f27d49eb1a1394951e"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"5.0.3"}],"source":["CPE_FIELD","REFERENCES"],"cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*"}}],"versions":["N","n0.11-dev","n0.12-dev","n0.8","n1.1-dev","n1.2-dev","n1.3-dev","n2.0","n2.1-dev","n2.2-dev","n2.3-dev","n2.4-dev","n2.5-dev","n2.6-dev","n2.7-dev","n2.8-dev","n2.9-dev","n3.1-dev","n3.2-dev","n3.3-dev","n3.4-dev","n3.5-dev","n4.1-dev","n4.2-dev","n4.3-dev","n4.4-dev","n4.5-dev","n5.0","n5.0.1","n5.0.2","n5.1-dev"],"database_specific":{"vanir_signatures":[{"signature_version":"v1","id":"CVE-2022-3341-7bd7d9b3","signature_type":"Function","source":"https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e","digest":{"length":1304,"function_hash":"212714700687714782806110927416798275156"},"deprecated":false,"target":{"function":"nut_read_header","file":"libavformat/nutdec.c"}},{"signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["12906491528301950330056808785355663414","76424333453171500676199213834035246984","203494022266310686971057352550723705016","13052012182376853825858264053725079068","131228061223871305456284901214847639250","333372060833506373861945745183155683304","60434264573278572591382653163519097041","68123171997916593828225792216335267989","305721504112645504358781934941290050116","227041948220225308580425041563422634931","288431581750765352076620402669156110371","317019860032823344116413789327366253880","138144405539726247412790470779925534392","176278491276011713736716859563389188667","190890976758392512353778965706686771850","110797133720430837899212760794560089640","205461340203508466923070600963970238796","43296001175390136536001579821771425024"]},"signature_type":"Line","source":"https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e","id":"CVE-2022-3341-80733c23","deprecated":false,"target":{"file":"libavformat/nutdec.c"}},{"signature_version":"v1","digest":{"length":4733,"function_hash":"161495002188957486527608985501524411437"},"signature_type":"Function","source":"https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e","id":"CVE-2022-3341-ae77536c","deprecated":false,"target":{"function":"decode_main_header","file":"libavformat/nutdec.c"}}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-3341.json","vanir_signatures_modified":"2026-04-12T03:45:01Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}