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

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-06-12T12:00:00.000Z
- Modified: 2026-08-25T02:55:59.557Z
- Also known as: RUSTSEC-2026-0178
- Weaknesses: CWE-125

## 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.

(As written by GitHub Advisory Database.)

## Affected

- tokio-postgres (crates.io): from 0.4.0 before 0.7.18

## Every score

- GitHub: CVSS:4.0 Medium `CVSS: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 Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/rust-postgres/rust-postgres/commit/7a00ffa9ad4d951ec0a4564b52f1780fa9d353c1> (web)
- <https://github.com/rust-postgres/rust-postgres> (package)
- <https://github.com/rust-postgres/rust-postgres/releases/tag/tokio-postgres-v0.7.18> (web)
- <https://rustsec.org/advisories/RUSTSEC-2026-0178.html> (advisory, web)
- <https://crates.io/crates/tokio-postgres> (package)

## Sources

- GitHub Advisory Database: [GHSA-3gjw-f78c-vvpw](https://github.com/advisories/GHSA-3gjw-f78c-vvpw), CC-BY-4.0, modified 2026-08-25
- RustSec Advisory Database: [RUSTSEC-2026-0178](https://rustsec.org/advisories/RUSTSEC-2026-0178.html), CC0-1.0, modified 2026-08-25

---

Page: https://cve.day/GHSA-3gjw-f78c-vvpw · Whole record: https://cve.day/GHSA-3gjw-f78c-vvpw.json · Rebuilt by cve.day 2026-11-25T22:56:43.370Z
