CVE-2026-92391: curl_mime_free stack overflow by recursion
该报告还没有中文解读。
原文摘录
摘自原文(5504 字符中的一小部分)
I've discovered a stack overflow in libcurl's MIME cleanup code. The read path in the MIME implementation is protected by a recursion depth limit (`MAX_MIME_LEVELS = 40`, defined at line 47 of `lib/mime.c` and checked in `read_part_content` and related functions), but the cleanup path has no …
原文中的代码
/* line 1056 */
static void cleanup_part_content(curl_mimepart *part)
{
if(part->freefunc)
part->freefunc(part->arg); /* calls mime_subparts_free for multipart parts */
...
}
/* line 1075 */
static void mime_subparts_free(void *ptr)
{
curl_mime *mime = (curl_mime *)ptr;
if(mime && …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @giant_anteater · 版权归作者与 curl 所有