GitHub Advisoryadvisory · Go
GHSA-h4h6-vccr-44h2 uptrace pgdriver SQL injection vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2024-44906
- Ecosystem
- Go
- Packages
- github.com/uptrace/bun/driver/pgdriver
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-89
- Reviewed
- 2025-06-17
Affected packages
• Go github.com/uptrace/bun/driver/pgdriver: < 1.2.15 → fixed in 1.2.15
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.
Related
Alias · CVE (1)
- CVE-2024-44906 uptrace pgdriver v1.2.1 was discovered to contain a SQL injection vulnerability via the appendArg function in /pgdriver/format.go. vulnerability
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-44906 advisory
- https://github.com/uptrace/bun/issues/1224 web
- https://github.com/uptrace/bun/commit/8067a8f13f8d22fb57b76d6800f7aefc12b044cd web
- https://github.com/uptrace/bun package
- https://github.com/uptrace/bun/blob/1573ae7c2fffad1a7f72fd2d205e924b2fd4043b/driver/pgdriver/format.go#L62 web
- https://github.com/uptrace/bun/blob/v1.2.15/CHANGELOG.md web
- https://github.com/uptrace/bun/tree/master/driver/pgdriver web
- https://media.defcon.org/DEF%20CON%2032/DEF%20CON%2032%20presentations/DEF%20CON%2032%20-%20Paul%20Gerste%20-%20SQL%20Injection%20Isn%27t%20Dead%20Smuggling%20Queries%20at%20the%20Protocol%20Level.pdf web
- https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw web