GHSA-mrww-27vc-gghvHighCVSS 9.8

pgx SQL Injection via Protocol Message Size Overflow

Published
March 4, 2024
Last Modified
March 14, 2026

🔗 CVE IDs covered (1)

📋 Description

Impact

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.

Patches

The problem is resolved in v4.18.2 and v5.5.4.

Workarounds

Reject user input large enough to cause a single query or bind message to exceed 4 GB in size.

🎯 Affected products4

  • go/github.com/jackc/pgx:< 4.18.2
  • go/github.com/jackc/pgx:>= 5.0.0, < 5.5.4
  • go/github.com/jackc/pgx/v4:< 4.18.2
  • go/github.com/jackc/pgx/v5:>= 5.0.0, < 5.5.4

🔗 References (9)