CVE-2024-44905 go-pg SQL injection vulnerability via the component /types/append_value.go

Medium 6.5 Published Updated

Attackers can execute arbitrary SQL commands via the go-pg library, potentially reading or modifying database contents.

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-44905?

CVE-2024-44905 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

go-pg pg v10.13.0 was discovered to contain a SQL injection vulnerability via the component /types/append_value.go.

Weakness: CWE-89

Which versions are affected by CVE-2024-44905?

9 open source packages ship an affected version, including github.com/go-pg/pg, github.com/go-pg/pg/v10 and github.com/go-pg/pg/v9. It affects 1 product.

PackageAffectedFixed in
github.com/go-pg/pg GoAll versionsNone
github.com/go-pg/pg GoAll versions to 8.0.7None
github.com/go-pg/pg GoAll versions to 8.0.7None
github.com/go-pg/pg/v10 GoAll versions10.15.0
github.com/go-pg/pg/v10 GoAll versions10.15.0
github.com/go-pg/pg/v10 GoAll versions10.15.0
3 more packages
github.com/go-pg/pg/v9 GoAll versionsNone
github.com/go-pg/pg/v9 GoAll versions to 9.2.1None
github.com/go-pg/pg/v9 GoAll versions to 9.2.1None

Products include Uptrace Pg.

How do I fix CVE-2024-44905?

Upgrade to a fixed version.

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-44905 being exploited?

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

Sources

Also known as DEBIAN-CVE-2024-44905, GHSA-6xp3-p59p-q4fj, GO-2025-3764, UBUNTU-CVE-2024-44905.

Is CVE-2024-44905 in your software?

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

Check your SBOMs for free