Uncaught Exception Affecting tokio-postgres package, versions >=0.4.0 <0.7.18


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-TOKIOPOSTGRES-17660651
  • published27 Jun 2026
  • disclosed12 Jun 2026
  • creditUnknown

Introduced: 12 Jun 2026

New CVE NOT AVAILABLE CWE-248  (opens in a new tab)

How to fix?

Upgrade tokio-postgres to version 0.7.18 or higher.

Overview

Affected versions of this package are vulnerable to Uncaught Exception via the get or try_get functions. An attacker can cause a panic and abort the calling task by sending a row with fewer fields than declared columns, leading to denial of service by exploiting a malicious or compromised server or a man-in-the-middle capable of modifying server responses. This is only exploitable if the client connects to untrusted or user-supplied servers, or if the connection can be intercepted.

CVSS Base Scores

version 4.0
version 3.1