Go Vulnerability Database
GO-2025-3764
SQL injection vulnerability via the component /types/append_value.go in github.com/go-pg/pg
Details
SQL injection vulnerability via the component /types/append_value.go in github.com/go-pg/pg
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/go-pg/pg | All versions, no fix listed |
| Go | github.com/go-pg/pg/v9 | All versions, no fix listed |
| Go | github.com/go-pg/pg/v10 | All versions before 10.15.0 (fixed in 10.15.0) |
References
- https://github.com/advisories/GHSA-6xp3-p59p-q4fj
- https://github.com/go-pg/pg/commit/eff50a43724e52347559687a6945c116afbb41c1
- https://github.com/go-pg/pg/blob/30e7053c6cacdd44d06cf2b92183b49188b7c922/types/append_value.go#L151
- https://github.com/go-pg/pg/releases/tag/v10.15.0
- 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
- https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw