Vulnerability
CVE-2024-27304
pgx is a PostgreSQL driver and toolkit for Go. 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 v4.18.2 and v5.5.4. As a workaround, reject user input large enough to cause a single query or bind message to exceed 4 GB in size.
93 advisories report this vulnerability, across 7 ecosystems.
Advisories
-
AZL-35752
CVE-2024-27304 affecting package telegraf for versions less than 1.31.0-1
-
AZL-35762
CVE-2024-27304 affecting package telegraf for versions less than 1.28.5-5
- CGA-2774-jqh4-jg4h
- CGA-2frh-r4hx-jwv6
- CGA-2jg7-2h2j-4g5w
- CGA-2wcg-pp7c-q3m6
- CGA-2wpr-2vwg-9gfh
- CGA-33v3-w5h5-fqx2
- CGA-369h-pq7q-4xpg
- CGA-39cj-j8qm-3754
- CGA-3c3w-p9gc-wfx9
- CGA-3jm6-7hp3-54gx
- CGA-3qpq-p92g-97g5
- CGA-3vw2-ph6q-97mg
- CGA-3w3c-fmwp-5pwc
- CGA-47cf-g288-99r4
- CGA-4fr6-rr89-j8ch
- CGA-553q-w927-xm46
- CGA-5rgm-vqhv-92r3
- CGA-5rjh-w426-mwq3
- CGA-5x9g-mvgf-4674
- CGA-66x7-64gq-rx3p
- CGA-6j59-h479-5hj8
- CGA-6w49-xh9j-5pgh
- CGA-6x45-43vc-g5wc
- CGA-8253-q34c-m2fw
- CGA-82ch-2v8c-vm9h
- CGA-854q-v2wr-hf3g
- CGA-8jmc-jwfp-qwfj
- CGA-8rc6-cvm2-v9m4
- CGA-9gwr-xp3h-wpx4
- CGA-9hpw-hqwf-cm98
- CGA-9ph6-9mrp-2m92
- CGA-c22m-79jv-wq94
- CGA-cpg4-95h3-mchr
- CGA-f8fj-223h-34xf
- CGA-ffqw-5jqh-ccvr
- CGA-fmx8-7q3m-j4rc
- CGA-fwf7-xm4j-vh6v
- CGA-g368-fvrv-jcmh
- CGA-g3c3-873q-jxcr
- CGA-g4hw-ffh4-3x96
- CGA-ggcp-f9x4-w37v
- CGA-gpm4-g7f7-hcrf
- CGA-hmx6-9594-fj25
- CGA-hwwv-2jp4-8r83
- CGA-j2qf-47c9-9v88
- CGA-j2qg-hjwq-97cq
- CGA-jhv2-9mqq-w5q7
- CGA-jq38-rqfv-m4q4
- CGA-m8pf-2w8h-rhhm
- CGA-m9x5-gjm3-5pcj
- CGA-mc46-c7rr-w55r
- CGA-mph5-w85v-847w
- CGA-mrwv-8h7j-c5rq
- CGA-mwgq-2p7x-w97w
- CGA-mxw2-xpph-vh84
- CGA-p24g-wc7g-rmgj
- CGA-p59v-67jc-mvjw
- CGA-p9qv-xc79-f244
- CGA-pqhc-cfvh-fcq4
- CGA-px8v-pr6q-r6vw
- CGA-q722-fgp3-c38f
- CGA-q79c-w393-99qh
- CGA-qgw5-g4g8-2g5m
- CGA-qw2h-75x2-r25r
- CGA-r3w3-632v-995v
- CGA-rp9h-grw5-h4h4
- CGA-rpc7-72m5-m6v4
- CGA-rrw3-gpm3-w4mc
- CGA-rx74-cc3j-vjg6
- CGA-v4wh-q8mw-rjq4
- CGA-v9q8-7x36-v4xf
- CGA-vc52-cqj9-5hr9
- CGA-vc87-pxj2-57f6
- CGA-vmcg-54pm-cp7r
- CGA-w6hv-3w24-8fff
- CGA-wpg6-wc9h-774c
- CGA-wrwc-r3c8-q89g
- CGA-wv48-342g-cmv7
- CGA-x2fj-mqgq-6ccj
- CGA-x3q6-j9f6-p9j4
- CGA-x45m-75rg-jwx8
- CGA-xg8q-2wfg-f3pj
- CGA-xm9p-mp2c-qv72
- CGA-xq7r-jjgq-qm39
- CGA-xwvq-cx8p-2x23
-
DEBIAN-CVE-2024-27304
pgx is a PostgreSQL driver and toolkit for Go. 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…
-
GHSA-7jwh-3vrq-q3m8
pgproto3 SQL Injection via Protocol Message Size Overflow
-
GHSA-mrww-27vc-gghv
pgx SQL Injection via Protocol Message Size Overflow
-
GO-2024-2606
SQL injection in github.com/jackc/pgproto3 and github.com/jackc/pgx
-
RHVEX-CVE-2024-27304
pgx: SQL Injection via Protocol Message Size Overflow
-
UBUNTU-CVE-2024-27304
pgx is a PostgreSQL driver and toolkit for Go. 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…
References
- https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007
- https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8
- https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4
- https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8
- https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
- https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv
- https://www.youtube.com/watch?v=Tfg1B8u1yvE