SQL Injection Affecting github.com/jackc/pgx/v5/pgproto3 package, versions <5.5.4


0.0
high
0
10

Snyk CVSS

    Attack Complexity Low
    Scope Changed

    Threat Intelligence

    EPSS 0.04% (10th percentile)
Expand this section
Red Hat
8.1 high

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 ID SNYK-GOLANG-GITHUBCOMJACKCPGXV5PGPROTO3-6371510
  • published 5 Mar 2024
  • disclosed 4 Mar 2024
  • credit Paul Gerste

How to fix?

Upgrade github.com/jackc/pgx/v5/pgproto3 to version 5.5.4 or higher.

Overview

github.com/jackc/pgx/v5/pgproto3 is a low-level PostgreSQL database driver

Affected versions of this package are vulnerable to SQL Injection due to an integer overflow in the calculated message size, which can cause a single query or bind message to exceed 4 GB in size, allowing the message to be interpreted as multiple messages, which can be executed in an unauthorized way.