Sourced from github.com/jackc/pgx/v4's changelog.
4.18.2 (March 4, 2024)
Fix CVE-2024-27289
SQL injection can occur when all of the following conditions are met:
- The non-default simple protocol is used.
- A placeholder for a numeric value must be immediately preceded by a minus.
- There must be a second placeholder for a string value after the first placeholder; both must be on the same line.
- Both parameter values must be user-controlled.
Thanks to Paul Gerste for reporting this issue.
Fix CVE-2024-27304
SQL injection can occur if an attacker can cause a single query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause the one large message to be sent as multiple messages under the attacker's control.
Thanks to Paul Gerste for reporting this issue.
- Fix *dbTx.Exec not checking if it is already closed
4.18.1 (February 27, 2023)
- Fix: Support pgx v4 and v5 stdlib in same program (Tomáš Procházka)
4.18.0 (February 11, 2023)
- Upgrade pgconn to v1.14.0
- Upgrade pgproto3 to v2.3.2
- Upgrade pgtype to v1.14.0
- Fix query sanitizer when query text contains Unicode replacement character
- Fix context with value in BeforeConnect (David Harju)
- Support pgx v4 and v5 stdlib in same program (Vitalii Solodilov)
4.17.2 (September 3, 2022)
- Fix panic when logging batch error (Tom Möller)
4.17.1 (August 27, 2022)
- Upgrade puddle to v1.3.0 - fixes context failing to cancel Acquire when acquire is creating resource which was introduced in v4.17.0 (James Hartig)
- Fix atomic alignment on 32-bit platforms
4.17.0 (August 6, 2022)
- Upgrade pgconn to v1.13.0
- Upgrade pgproto3 to v2.3.1
- Upgrade pgtype to v1.12.0
... (truncated)
14690df
Update changelog779548e
Update required Go version to 1.1780e9662
Update github.com/jackc/pgconn to v1.14.30bf9ac3
Fix erroneous test casef94eb0e
Always wrap arguments in parentheses in the SQL sanitizer826a892
Fix SQL injection via line comment creation in simple protocol7d882f9
Fix *dbTx.Exec not checking if it is already closed1d07b8b
go mod tidy13468eb
Release v4.18.17fed69b
simplify duplicate pgx
registration guard