Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. tokio-postgres
  4. ›
  5. GHSA-3gjw-f78c-vvpw

GHSA-3gjw-f78c-vvpw: tokio-postgres: Panic on a `DataRow` with fewer fields than columns allows denial of service

August 24, 2026

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.

References

  • github.com/advisories/GHSA-3gjw-f78c-vvpw
  • github.com/rust-postgres/rust-postgres/commit/7a00ffa9ad4d951ec0a4564b52f1780fa9d353c1
  • github.com/rust-postgres/rust-postgres/releases/tag/tokio-postgres-v0.7.18
  • rustsec.org/advisories/RUSTSEC-2026-0178.html

Code Behaviors & Features

Detect and mitigate GHSA-3gjw-f78c-vvpw with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.4.0 before 0.7.18

Fixed versions

  • 0.7.18

Solution

Upgrade to version 0.7.18 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

cargo/tokio-postgres/GHSA-3gjw-f78c-vvpw.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 25 Aug 2026 00:19:08 +0000.