GHSA-fqpg-rq76-99pq: Github.com/jackc/pgx/v5 Panic Vulnerability
MODERATEGHSA-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
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).
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.
Upgrade github.com/jackc/pgx/v5 to 5.5.2
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
GHSA-fqpg-rq76-99pq Affected Github.com/jackc/pgx/v5 Versions
1 component(s)| 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?
Which Github.com/jackc/pgx/v5 versions are affected?
What version fixes GHSA-fqpg-rq76-99pq?
Is github.com/jackc/pgx/v5 affected?
What is the CVSS score of GHSA-fqpg-rq76-99pq?
What CWE is associated with GHSA-fqpg-rq76-99pq?
How can I check Go dependencies for GHSA-fqpg-rq76-99pq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}