| Package | Affected versions | Patched versions |
|---|---|---|
| github.com/jackc/pgproto3 | < 2.3.3 | 2.3.3 |
| github.com/jackc/pgproto3/v2 | < 2.3.3 | 2.3.3 |
| github.com/jackc/pgx | ≥ 5.0.0, < 5.5.4< 4.18.2all versions | 5.5.44.18.2 |
| github.com/jackc/pgx/v4 | < 4.18.2 | 4.18.2 |
| github.com/jackc/pgx/v5 | ≥ 5.0.0, < 5.5.4 | 5.5.4 |
| pgproto3 | < 2.3.3 | 2.3.3 |
| pgx | ≥ 5.0.0, < 5.5.4< 4.18.2 | 5.5.44.18.2 |
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.
The problem is resolved in v2.3.3
Reject user input large enough to cause a single query or bind message to exceed 4 GB in size.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free