{"id":"GHSA-5x78-73v4-xg6w","aliases":["GHSA-5x78-73v4-xg6w","RUSTSEC-2026-0179"],"related":[],"kind":"vulnerability","state":"published","title":"postgres-protocol: Unbounded SCRAM iteration count allows a malicious server to cause CPU-exhaustion denial of service","summary":"A malicious, compromised, or man-in-the-middle server can supply an arbitrarily\nlarge SCRAM-SHA-256 PBKDF2 iteration count during authentication. The client\nruns it inline with no upper bound, pinning a `tokio` worker thread for minutes\nper connection, possibly stalling the whole async runtime.\n\nApplications that connect only to a trusted database are not exposed; the risk\napplies to clients that may connect to untrusted or user-supplied servers, or\nwhose connection can be intercepted by a man-in-the-middle.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"A malicious, compromised, or man-in-the-middle server can supply an arbitrarily\nlarge SCRAM-SHA-256 PBKDF2 iteration count during authentication. The client\nruns it inline with no upper bound, pinning a `tokio` worker thread for minutes\nper connection, possibly stalling the whole async runtime.\n\nApplications that connect only to a trusted database are not exposed; the risk\napplies to clients that may connect to untrusted or user-supplied servers, or\nwhose connection can be intercepted by a man-in-the-middle.","format":"markdown","source":"ghsa"}],"published":"2026-06-12T12:00:00.000Z","modified":"2026-09-10T03:51:13.131Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.6.12"}],"ecosystem":"crates.io","package":"postgres-protocol","purl":"pkg:cargo/postgres-protocol","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.6.12"}],"ecosystem":"crates.io","package":"postgres-protocol","purl":"pkg:cargo/postgres-protocol","source":"rustsec"}],"references":[{"url":"https://github.com/rust-postgres/rust-postgres/commit/d40097a36a85068ea50a3afbf0ce154ba439e7f0","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/rust-postgres/rust-postgres","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rust-postgres/rust-postgres/releases/tag/postgres-protocol-v0.6.12","tags":["web"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0179.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/postgres-protocol","tags":["package"],"sources":["rustsec"]},{"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-98qh-xjc8-98pq","tags":["advisory"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5x78-73v4-xg6w","url":"https://github.com/advisories/GHSA-5x78-73v4-xg6w","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:13.131Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0179","url":"https://rustsec.org/advisories/RUSTSEC-2026-0179.html","licence":"CC0-1.0","modified":"2026-08-25T02:45:03.433Z"}],"updatedAt":"2026-11-25T22:56:43.371Z"}