GHSA-fqpg-rq76-99pq: Github.com/jackc/pgx/v5 Panic Vulnerability

MODERATE
CVSS 5.3
CWE-754
Published
Advisory Summary

GHSA-fqpg-rq76-99pq is a MODERATE (CVSS 5.3) panic vulnerability (CWE-754: Improper Check for Unusual or Exceptional Conditions) affecting Github.com/jackc/pgx/v5 libraries in the Go ecosystem. The issue involves panic in pipeline when pgconn is busy or closed in github.com/jackc/pgx. Remediation is available by upgrading affected packages to version 5.5.2.

GHSA-fqpg-rq76-99pq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-fqpg-rq76-99pq
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-754: Improper Check for Unusual or Exceptional Conditions
Affected Product Github.com/jackc/pgx/v5
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix GHSA-fqpg-rq76-99pq

To remediate this vulnerability, upgrade all affected Github.com/jackc/pgx/v5 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/jackc/pgx/v5 fixed: 5.5.2
Upgrade github.com/jackc/pgx/v5 to 5.5.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/jackc/pgx/v5

How to Check if You Are Affected

To determine whether your application is affected by GHSA-fqpg-rq76-99pq, inspect your project dependencies for Github.com/jackc/pgx/v5:

inspect dependencies for github.com/jackc/pgx/v5

Analyze the terminal output to locate any version of Github.com/jackc/pgx/v5 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.5.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions, where the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. In Github.com/jackc/pgx/v5, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Pipeline can panic when PgConn is busy or closed.

GHSA-fqpg-rq76-99pq Affected Github.com/jackc/pgx/v5 Versions

1 component(s)
Fixed Versions:
5.5.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/jackc/pgx/v5
Go
< 5.5.2
5.5.2

References

Frequently Asked Questions

What is GHSA-fqpg-rq76-99pq?
GHSA-fqpg-rq76-99pq is a security vulnerability in Github.com/jackc/pgx/v5 involving Panic in Pipeline when PgConn is busy or closed in github.com/jackc/pgx under CWE-754: Improper Check for Unusual or Exceptional Conditions.
Which Github.com/jackc/pgx/v5 versions are affected?
Affected versions include releases prior to 5.5.2 across affected packages: github.com/jackc/pgx/v5.
What version fixes GHSA-fqpg-rq76-99pq?
Upgrading to 5.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/jackc/pgx/v5 affected?
Yes, github.com/jackc/pgx/v5 is affected in releases prior to 5.5.2. Upgrade your dependency to 5.5.2 or later.
What is the CVSS score of GHSA-fqpg-rq76-99pq?
GHSA-fqpg-rq76-99pq has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with GHSA-fqpg-rq76-99pq?
GHSA-fqpg-rq76-99pq is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions (The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.).
How can I check Go dependencies for GHSA-fqpg-rq76-99pq?
Run the dependency tree command: 'inspect dependencies for github.com/jackc/pgx/v5'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fqpg-rq76-99pq",
  "modified" : "2026-03-19T18:41:01Z",
  "published" : "2024-07-05T20:08:26Z",
  "aliases" : [ ],
  "summary" : "Panic in Pipeline when PgConn is busy or closed in github.com/jackc/pgx",
  "details" : "Pipeline can panic when PgConn is busy or closed.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/jackc/pgx/v5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jackc/pgx/commit/dfd198003a03dbb96e4607b0d3a0bb9a7398ccb7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jackc/pgx"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-754" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-05T20:08:26Z",
    "nvd_published_at" : null
  }
}