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 1efed009b25a24c0b232f1d9950e9d1e965c88fc
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 19:25:26 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 21:19:57 2026 +0100

    avformat/http: reject control characters and spaces in the CONNECT target
    
    Fixes: CRLF injection
    Fixes: ZDI-CAN-35984
    Fixes: iUFdqPjbigVZ
    CRLF injection Replicated through UnModified FFmpeg with a local TCP 
listener
    
    Found-by: Yves Bieri (@yves_bieri) of Xint (@xint_official) working with 
TrendAI Zero Day Initiative
    (cherry picked from commit 1bdc17e2c8f9528c3db2140cb45002a3663d938f)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/http.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index 2fc3c5f402..a774fe736e 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -2559,6 +2559,9 @@ static int http_proxy_open(URLContext *h, const char 
*uri, int flags)
     path = pathbuf;
     if (*path == '/')
         path++;
+    for (const char *p = path; *p; p++)
+        if ((uint8_t)*p <= ' ' || *p == 0x7f)
+            return AVERROR(EINVAL);
 
     ff_url_join(lower_url, sizeof(lower_url), "tcp", NULL, hostname, port,
                 NULL);

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