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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (12th percentile)

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-GITHUBCOMJACKCPGXV5PGCONN-6371509
  • published 5 Mar 2024
  • disclosed 4 Mar 2024
  • credit Paul Gerste

How to fix?

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

Overview

github.com/jackc/pgx/v5/pgconn 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.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
8.3 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

Red Hat

8.1 high