POJIA破甲
地图 / Heap-use-after-free in CURLOPT_REFERER when passed a CURLINFO_REFERER pointer

Heap-use-after-free in CURLOPT_REFERER when passed a CURLINFO_REFERER pointer

内存破坏 / Unlabeled / #3971462

厂商
curl
严重程度
低危
赏金
—
弱点
Unlabeled
研究员
@giant_anteater
披露日期
2026-09-14
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(3704 字符中的一小部分)
Setting `CURLOPT_REFERER` with a pointer previously obtained from `CURLINFO_REFERER` on the same easy handle triggers a heap-use-after-free. The `CURLOPT_REFERER` handler frees `data->state.referer` (line `lib/setopt.c:2089`) before `Curl_setstropt` reads from the now-dangling pointer (line …
原文中的代码
// lib/setopt.c:2085-2091
case CURLOPT_REFERER:
    Curl_bufref_free(&data->state.referer);          // frees the buffer
    result = Curl_setstropt(data, STRING_SET_REFERER, ptr); // reads from ptr
    break;

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @giant_anteater · 版权归作者与 curl 所有

同类报告

touch.mail.ru / e.mail.ru memory content disclosureMail.ru · — · $10,000CWE-195 in ExternalMemoryAccounter::Increase()Node.js · 2025-08-26Memory Exhaustion in CometBFT v1.0.1 via malicious ProposalMessage leads to network-wide denial of serviceCosmos · 2026-01-20CVE-2024-2398: HTTP/2 push headers memory-leakInternet Bug Bounty · 2024-04-22DoS via Unbounded Memory Allocation in sendWebStream on Fastify v5.7.0+ leads to OOM crash when backpressure is ignoredFastify · 2026-03-05Vulnerability Report: Buffer Overflow in Path Sanitizationcurl · 2026-06-16
Heap-use-after-free in CURLOPT_REFERER when passed a CURLINFO_REFERER pointer · 破甲 POJIA