PR #26080 opened by michaelni
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26080
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26080.patch

Fixes: Arbitrary code execution
Fixes: acf_a81d9fbe1d00a6ac6de3984d55253e07
Fixes: CdQERK5i6h83

Code execution Replicated through UnModified FFmpeg with AviSynth+ 3.7.6



>From f8983009205d19ada571365ce24e5a39aae75e68 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <[email protected]>
Date: Sun, 15 Nov 2026 19:34:05 +0100
Subject: [PATCH] avformat/avisynth: do not select the demuxer by file
 extension

Fixes: Arbitrary code execution
Fixes: acf_a81d9fbe1d00a6ac6de3984d55253e07
Fixes: CdQERK5i6h83

Code execution Replicated through UnModified FFmpeg with AviSynth+ 3.7.6
---
 doc/faq.texi           | 2 +-
 libavformat/avisynth.c | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/doc/faq.texi b/doc/faq.texi
index a9872fc2d29..6a3c1db612d 100644
--- a/doc/faq.texi
+++ b/doc/faq.texi
@@ -282,7 +282,7 @@ DirectShowSource("C:\path to your file\yourfile.asf")
 @end example
 ... and then feed that text file to ffmpeg:
 @example
-ffmpeg -i input.avs
+ffmpeg -f avisynth -i input.avs
 @end example
 
 For ANY other help on AviSynth, please visit the
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index cb2be10925b..7133860466c 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -1150,7 +1150,6 @@ static const AVClass avisynth_demuxer_class = {
 const FFInputFormat ff_avisynth_demuxer = {
     .p.name         = "avisynth",
     .p.long_name    = NULL_IF_CONFIG_SMALL("AviSynth script"),
-    .p.extensions   = "avs",
     .p.priv_class   = &avisynth_demuxer_class,
     .priv_data_size = sizeof(AviSynthContext),
     .read_header    = avisynth_read_header,
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to