GHSA-fqpg-rq76-99pq Panic in Pipeline when PgConn is busy or closed in github.com/jackc/pgx

Not scored Published

A panic in the pgx library's Pipeline feature when the connection is busy or closed can cause a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-fqpg-rq76-99pq?

GHSA-fqpg-rq76-99pq is a denial of service vulnerability in github.com/jackc/pgx/v5, published on 2 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Pipeline can panic when PgConn is busy or closed.

Which versions are affected by GHSA-fqpg-rq76-99pq?

3 open source packages ship an affected version, including github.com/jackc/pgx/v5.

PackageAffectedFixed in
github.com/jackc/pgx/v5 GoAll versions5.5.2
github.com/jackc/pgx/v5 GoAll versions5.5.2
github.com/jackc/pgx/v5 GoFrom 5.0.0-alpha.55.5.2

How do I fix GHSA-fqpg-rq76-99pq?

Upgrade github.com/jackc/pgx/v5 to 5.5.2 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-fqpg-rq76-99pq being exploited?

There is no known exploitation of GHSA-fqpg-rq76-99pq in the wild and no public exploit code.

Sources

Also known as GO-2024-2567.

Is GHSA-fqpg-rq76-99pq in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free