RUSTSEC-2026-0178
MEDIUMtokio-postgres: Panic on a `DataRow` with fewer fields than columns allows denial of service
A malicious or compromised server can send a row containing fewer fields than
its row description declares columns. Reading one of the missing columns then
panics with an out-of-bounds index, aborting the calling task. This affects even
the otherwise non-panicking try_get, and both Row and SimpleQueryRow.
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.
- Published
- 12 Jun 2026
- Last modified
- 25 Aug 2026
- Weakness
- CWE-125
- Also known as
- GHSA-3gjw-f78c-vvpw
- Sources
- OSV GHSA-3gjw-f78c-vvpwJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | RustSec | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | tokio-postgres | >= 0.4.0, < 0.7.18 | 0.7.18 |
References
- https://github.com/rust-postgres/rust-postgres/commit/7a00ffa9ad4d951ec0a4564b52f1780fa9d353c1 · WEB
- https://github.com/rust-postgres/rust-postgres · PACKAGE
- https://github.com/rust-postgres/rust-postgres/releases/tag/tokio-postgres-v0.7.18 · WEB
- https://rustsec.org/advisories/RUSTSEC-2026-0178.html · WEB, ADVISORY
- https://crates.io/crates/tokio-postgres · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Aug 2026)