POJIA破甲
地图 / CVE-2026-111951: curl -OJ truncate without filename

CVE-2026-111951: curl -OJ truncate without filename

路径遍历 / External Control of File Name or Path / #4124849

厂商
curl
严重程度
低危
赏金
—
弱点
External Control of File Name or Path
研究员
@matty69v
披露日期
2026-10-26
资产
https://github.com/curl/curl
CVE
CVE-2026-111951

该报告还没有中文解读。

原文摘录

摘自原文(2892 字符中的一小部分)
Summary: With `-O -J`, when a response carries a `Content-Disposition` header without a usable `filename=` (for example `inline`) before the one that names an existing file, curl truncates that existing file to 0 bytes and then exits 23 saying it refused to overwrite it. This breaks the promise in …
原文中的代码
HTTP/1.1 200 OK
Content-Disposition: inline
Content-Disposition: attachment; filename="victim"
Content-Length: 8

PAYLOAD

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

时间线

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

同类报告

curl External-Controlled Filename in `--url @file` Leads to Arbitrary File Overwritecurl · 2026-06-07Insufficient checks in the file path parameter allow writing to unauthorized directoriesSingleStore · 2026-06-24Arbitrary Configuration File Inclusion: via External Control of File Name or Pathcurl · 2025-11-10Arbitrary File Read via Unsanitized curl Usage Results in Sensitive File Exposurecurl · 2025-06-27