CVE-2024-44906 uptrace pgdriver SQL injection vulnerability

Medium 6.5 Published Updated

A SQL injection vulnerability in the uptrace pgdriver Go library allows attackers to manipulate database queries via the appendArg function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-44906?

CVE-2024-44906 is a medium-severity SQL injection vulnerability in n/a, published on 12 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

uptrace pgdriver v1.2.1 was discovered to contain a SQL injection vulnerability via the appendArg function in /pgdriver/format.go. The maintainer has stated that the issue is fixed in v1.2.15.

Weakness: CWE-89

Which versions are affected by CVE-2024-44906?

3 open source packages ship an affected version, including github.com/uptrace/bun/driver/pgdriver. It affects 1 product.

PackageAffectedFixed in
github.com/uptrace/bun/driver/pgdriver GoAll versions1.2.15
github.com/uptrace/bun/driver/pgdriver GoAll versions1.2.15
github.com/uptrace/bun/driver/pgdriver GoAll versions1.2.15

Products include Uptrace Pgdriver.

How do I fix CVE-2024-44906?

Upgrade github.com/uptrace/bun/driver/pgdriver to 1.2.15 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2024-44906 being exploited?

There is no known exploitation of CVE-2024-44906 in the wild and no public exploit code.

Sources

Also known as GHSA-h4h6-vccr-44h2, GO-2025-3765.

Is CVE-2024-44906 in your software?

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

Check your SBOMs for free