# GHSA-5x78-73v4-xg6w: postgres-protocol: Unbounded SCRAM iteration count allows a malicious server to cause CPU-exhaustion denial of service

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-06-12T12:00:00.000Z
- Modified: 2026-09-10T03:51:13.131Z
- Also known as: RUSTSEC-2026-0179
- Weaknesses: CWE-770

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- postgres-protocol (crates.io): from 0.3.0 before 0.6.12

## Every score

- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- RustSec Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/rust-postgres/rust-postgres/commit/d40097a36a85068ea50a3afbf0ce154ba439e7f0> (web)
- <https://github.com/rust-postgres/rust-postgres> (package)
- <https://github.com/rust-postgres/rust-postgres/releases/tag/postgres-protocol-v0.6.12> (web)
- <https://rustsec.org/advisories/RUSTSEC-2026-0179.html> (advisory, web)
- <https://crates.io/crates/postgres-protocol> (package)
- <https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-98qh-xjc8-98pq> (advisory)

## Sources

- GitHub Advisory Database: [GHSA-5x78-73v4-xg6w](https://github.com/advisories/GHSA-5x78-73v4-xg6w), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2026-0179](https://rustsec.org/advisories/RUSTSEC-2026-0179.html), CC0-1.0, modified 2026-08-25

---

Page: https://cve.day/GHSA-5x78-73v4-xg6w · Whole record: https://cve.day/GHSA-5x78-73v4-xg6w.json · Rebuilt by cve.day 2026-11-25T22:56:43.371Z
