POJIA破甲
地图 / Security hardening: missing integer overflow check in curl_load_library()

Security hardening: missing integer overflow check in curl_load_library()

内存破坏 / 整数溢出 / #3479019

厂商
curl
严重程度
低危
赏金
—
弱点
整数溢出
研究员
@y_security
披露日期
2025-12-27
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(4608 字符中的一小部分)
Summary A missing integer overflow check was identified in `lib/system_win32.c::curl_load_library()` when calculating the buffer size for a DLL path. On 32-bit Windows builds, the unchecked size calculation can wrap around, resulting in an undersized heap allocation followed by unbounded string …
原文中的代码
UINT systemdirlen = GetSystemDirectory(NULL, 0);
if(systemdirlen) {
  size_t filenamelen = _tcslen(filename);
  TCHAR *path = curlx_malloc(sizeof(TCHAR) *
                             (systemdirlen + 1 + filenamelen));
  if(path && GetSystemDirectory(path, systemdirlen)) {
    _tcscpy(path + …

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

时间线

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

同类报告

Integer overflow leading to buffer overflowInternet Bug Bounty · 2019-09-25 · $1,000Integer overflow in CipherUpdateInternet Bug Bounty · 2021-04-08Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.cInternet Bug Bounty · 2019-10-21Integer overflow vulnerabilityGlovo · 2022-05-17Cookie Max-Age Integer Overflow Vulnerabilitycurl · 2026-01-19Integer Overflow in schannel.c TLS Data Transmissioncurl · 2025-08-02