RUSTSEC-2026-0178: Panic on a `DataRow` with fewer fields than columns allows denial of service

未關閉
#6,625 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
rust
領域
security

研究方向

從 graph-node 的 tokio-postgres 0.7.15 相依性開始,接著閱讀連結的上游提交以及 RUSTSEC-2026-0178 公告。確認相依性如何解析,並將其更新至至少 0.7.18 的修補版本;完成的條件是受影響的相依性不再被選取,且相關檢查通過。

由索引模型根據 Issue 內容生成。

描述

Panic on a DataRow with fewer fields than columns allows denial of service

Details
Package tokio-postgres
Version 0.7.15
URL https://github.com/rust-postgres/rust-postgres/commit/7a00ffa9ad4d951ec0a4564b52f1780fa9d353c1
Date 2026-06-12
Patched versions >=0.7.18
Unaffected versions <0.4.0

A malicious or compromised server can send a row containing fewer fields than
its row description declares columns. Reading one of the missing columns then
panics with an out-of-bounds index, aborting the calling task. This affects even
the otherwise non-panicking try_get, and both Row and SimpleQueryRow.

Applications that connect only to a trusted database are not exposed; the risk
applies to clients that may connect to untrusted or user-supplied servers, or
whose connection can be intercepted by a man-in-the-middle.

See advisory page for additional details.

主要語言
Rust
星號
3.2k
分支
1.1k
平均合併
4 天 1 小時
30 天內合併 PR
1

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

graphprotocol/graph-node 的其他 Issue

查看 graphprotocol/graph-node 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。