tokio-postgres
Affected
- introduced
0.4.0, fixed0.7.18(semver)
Fixed versions
0.7.18
Fix
- Fixed version
0.7.18cargo update -p tokio-postgres --precise 0.7.18
Advisory
Also known as: RUSTSEC-2026-0178
tokio-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.
Medium Basis: The source's own band: MODERATE
0.4.0, fixed 0.7.18 (semver)0.7.18
0.7.18cargo update -p tokio-postgres --precise 0.7.18Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0