CVE-2024-44905 go-pg SQL injection vulnerability via the component /types/append_value.go
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-pg/pg Go | All versions | None |
github.com/go-pg/pg Go | All versions to 8.0.7 | None |
github.com/go-pg/pg Go | All versions to 8.0.7 | None |
github.com/go-pg/pg/v10 Go | All versions | 10.15.0 |
github.com/go-pg/pg/v10 Go | All versions | 10.15.0 |
github.com/go-pg/pg/v10 Go | All versions | 10.15.0 |
3 more packages
github.com/go-pg/pg/v9 Go | All versions | None |
github.com/go-pg/pg/v9 Go | All versions to 9.2.1 | None |
github.com/go-pg/pg/v9 Go | All versions to 9.2.1 | None |
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.