Advisory

GHSA-5x78-73v4-xg6w

Also known as: RUSTSEC-2026-0179

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-08-24 19:43 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

postgres-protocol

crates.io · All systems

Affected

  • introduced 0.3.0, fixed 0.6.12 (semver)

Fixed versions

0.6.12

Fix

  • Fixed version 0.6.12
    cargo update -p postgres-protocol --precise 0.6.12

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences