Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-27304— pgx SQL Injection via Protocol Message Size Overflow

Quick assessment

Affected
jackc pgx
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pgx是适用于 Go 的 PostgreSQL 驱动程序和工具包。 pgx存在安全漏洞,该漏洞源于通过协议消息大小溢出可以进行SQL注入。

CVSS 9.8 · Critical EPSS 1.11% · P65

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-27304

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
pgx SQL Injection via Protocol Message Size Overflow
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
pgx 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
pgx是适用于 Go 的 PostgreSQL 驱动程序和工具包。 pgx存在安全漏洞,该漏洞源于通过协议消息大小溢出可以进行SQL注入。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Shenlong Deep Dive — AI Deep Analysis

10-question deep dive: root cause, exploitation, mitigation, urgency. Read summary free, full version requires login.

Affected Products

Vendor Product Affected Versions CPE Subscribe
jackc pgx < 4.18.2 -

II. Public POCs for CVE-2024-27304

# POC Description Source Link Shenlong Link
1 PoC of "DEF CON 32 - SQL Injection Isn't Dead Smuggling Queries at the Protocol Level - Paul Gerste" https://github.com/roaris/CVE-2024-27304-PoC POC Details
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8930 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2024-27304

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-27304 (4)

Vendor Advisories for CVE-2024-27304 (2)

News Coverage for CVE-2024-27304 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-27304

No comments yet


Leave a comment