{"id":"GHSA-3gjw-f78c-vvpw","aliases":["GHSA-3gjw-f78c-vvpw","RUSTSEC-2026-0178"],"related":[],"kind":"vulnerability","state":"published","title":"tokio-postgres: Panic on a `DataRow` with fewer fields than columns allows denial of service","summary":"A malicious or compromised server can send a row containing fewer fields than\nits row description declares columns. Reading one of the missing columns then\npanics with an out-of-bounds index, aborting the calling task. This affects even\nthe otherwise non-panicking `try_get`, and both `Row` and `SimpleQueryRow`.\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 or compromised server can send a row containing fewer fields than\nits row description declares columns. Reading one of the missing columns then\npanics with an out-of-bounds index, aborting the calling task. This affects even\nthe otherwise non-panicking `try_get`, and both `Row` and `SimpleQueryRow`.\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-08-25T02:55:59.557Z","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:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},"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:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"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:L/SC:N/SI:N/SA:N"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"0.7.18"}],"ecosystem":"crates.io","package":"tokio-postgres","purl":"pkg:cargo/tokio-postgres","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"0.7.18"}],"ecosystem":"crates.io","package":"tokio-postgres","purl":"pkg:cargo/tokio-postgres","source":"rustsec"}],"references":[{"url":"https://github.com/rust-postgres/rust-postgres/commit/7a00ffa9ad4d951ec0a4564b52f1780fa9d353c1","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/tokio-postgres-v0.7.18","tags":["web"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0178.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/tokio-postgres","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3gjw-f78c-vvpw","url":"https://github.com/advisories/GHSA-3gjw-f78c-vvpw","licence":"CC-BY-4.0","modified":"2026-08-25T02:55:59.557Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0178","url":"https://rustsec.org/advisories/RUSTSEC-2026-0178.html","licence":"CC0-1.0","modified":"2026-08-25T02:45:03.437Z"}],"updatedAt":"2026-11-25T22:56:43.370Z"}