graphprotocol / graphprotocol/graph-node

RUSTSEC-2026-0179: Unbounded SCRAM iteration count allows a malicious server to cause CPU-exhaustion denial of service

Open
#6,623 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Description

Unbounded SCRAM iteration count allows a malicious server to cause CPU-exhaustion denial of service

Details
Package postgres-protocol
Version 0.6.9
URL https://github.com/rust-postgres/rust-postgres/commit/d40097a36a85068ea50a3afbf0ce154ba439e7f0
Date 2026-06-12
Patched versions >=0.6.12
Unaffected versions <0.3.0

A malicious, compromised, or man-in-the-middle server can supply an arbitrarily
large SCRAM-SHA-256 PBKDF2 iteration count during authentication. The client
runs it inline with no upper bound, pinning a tokio worker thread for minutes
per connection, possibly stalling the whole async runtime.

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report concerns the Rust postgres-protocol package; begin with the linked upstream commit and RustSec advisory to determine how graph-node resolves this dependency. Confirm that the dependency uses a patched postgres-protocol version (>=0.6.12) and that the affected SCRAM authentication path is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres, rust
Domain
authentication, databases, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.