Intel

AIKIDO-2026-128868

tokio-postgres is vulnerable to Denial of Service (DoS)

GHSA-3gjw-f78c-vvpwPublished Jun 15, 2026
June 15, 2026

69

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the tokio-postgres library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and if its possible connect to untrusted or user-supplied servers.

Versions

0.4.0 - 0.7.17

Fixed in 0.7.18

Background info

tokio-postgres is vulnerable to Denial of Service (DoS) in versions 0.4.0 - 0.7.17.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea