Advisory

RUSTSEC-2026-0178

Also known as: GHSA-3gjw-f78c-vvpw

Summary

Panic on a DataRow with fewer fields than columns allows denial of service

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-06-12 12:00 UTC
Modified
2026-08-25 02:45 UTC

Affected packages and fixes

tokio-postgres

crates.io · All systems

Affected

  • introduced 0.4.0, fixed 0.7.18 (semver)

Fixed versions

0.7.18

Fix

  • Fixed version 0.7.18
    cargo update -p tokio-postgres --precise 0.7.18

Fix 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

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences