This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit bba8850cc82d9d20c6627e25dca0c593652e4d02
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 19:36:54 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 21:19:57 2026 +0100

    avformat/http: reject CR and LF in the hostname
    
    Fixes: CRLF injection
    Fixes: eiIHGT2jJznc
    Fixes: proxy_host_crlf_poc.py
    CRLF injection Replicated through UnModified FFmpeg with a local TCP 
listener
    
    Found during triage of the security report iUFdqPjbigVZ (ZDI-CAN-35984)
    
    (cherry picked from commit 6d898e0c1726afa9cb47e0835202e69d36c2d059)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/http.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index a774fe736e..b8ea7b3757 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -267,6 +267,8 @@ static int http_open_cnx_internal(URLContext *h, 
AVDictionary **options)
     av_url_split(proto, sizeof(proto), auth, sizeof(auth),
                  hostname, sizeof(hostname), &port,
                  path1, sizeof(path1), s->location);
+    if (strpbrk(hostname, "\r\n"))
+        return AVERROR(EINVAL);
 
     av_freep(&s->host);
     s->host = av_strdup(hostname);

-- 
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]

Reply via email to