GHSA-3gjw-f78c-vvpw
medium
tokio-postgres: Panic on a `DataRow` with fewer fields than columns allows denial of service
- Severity
- medium CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2026-0178
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tokio-postgres (crates.io) | from 0.4.0 before 0.7.18 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| GitHub | medium 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 |
| RustSec Advisory Database | Not scored 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 |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-3gjw-f78c-vvpw changed 2026-08-25 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2026-0178 changed 2026-08-25 | CC0-1.0 |