Skip to content

RUSTSEC-2026-0178: Panic on a DataRow with fewer fields than columns allows denial of service #6

Description

@github-actions

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

Details
Package tokio-postgres
Version 0.7.17
URL rust-postgres/rust-postgres@7a00ffa
Date 2026-06-12
Patched versions >=0.7.18
Unaffected versions <0.4.0

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.

See advisory page for additional details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions