This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch release/8.0
in repository ffmpeg.
The following commit(s) were added to refs/heads/release/8.0 by this push:
new 6caa1498bb avformat/hlsproto: restrict the protocols a playlist may
reference
6caa1498bb is described below
commit 6caa1498bbbd91b51d34b30a5c57cf5b74087c16
Author: Michael Niedermayer <[email protected]>
AuthorDate: Thu Oct 29 18:33:09 2026 +0100
Commit: Michael Niedermayer <[email protected]>
CommitDate: Mon Nov 2 18:13:26 2026 +0100
avformat/hlsproto: restrict the protocols a playlist may reference
Fixes: local file disclosure
Fixes: 5XX7X8ZhsNmw
Fixes: ANT-2026-QUKQXXX6
Local file disclosure Replicated through UnModified FFmpeg with the
ffmpeg command line tool
Found-by: Anthropic (ANT-2026-QUKQXXX6) via
https://red.anthropic.com/oss-scanner/
Reported-by: Thomas Guillem (VideoLAN)
---
libavformat/hlsproto.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c
index f0e2230a70..a69b01e2ed 100644
--- a/libavformat/hlsproto.c
+++ b/libavformat/hlsproto.c
@@ -223,6 +223,18 @@ static int hls_open(URLContext *h, const char *uri, int
flags)
"To use the demuxer, simply use %s as url.\n",
s->playlisturl);
+ if (!h->protocol_whitelist) {
+ const char *playlist_proto = avio_find_protocol_name(s->playlisturl);
+ h->protocol_whitelist =
+ av_strdup(playlist_proto && !strcmp(playlist_proto, "file") ?
+ "file,crypto,data" :
+ "http,https,tls,rtp,tcp,udp,crypto,httpproxy,data");
+ if (!h->protocol_whitelist) {
+ ret = AVERROR(ENOMEM);
+ goto fail;
+ }
+ }
+
if ((ret = parse_playlist(h, s->playlisturl)) < 0)
goto fail;
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]