GHSA-3gjw-f78c-vvpw
JSON

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 packageVersionsReported by
tokio-postgres (crates.io)from 0.4.0 before 0.7.18GitHub Advisory Database, RustSec Advisory Database

All scores

GitHubmedium CVSS:4.0CVSS: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 DatabaseNot scored CVSS:4.0CVSS: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

SourceRecordLicence
GitHub Advisory DatabaseGHSA-3gjw-f78c-vvpw changed 2026-08-25CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2026-0178 changed 2026-08-25CC0-1.0