{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-27304","published":"2024-03-06T19:15:08.767000Z","last_modified":"2026-06-17T07:19:36.673000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-89","CWE-190"],"cpes":[{"criteria":"cpe:2.3:a:jackc:pgproto3:*:*:*:*:*:go:*:*","part":"a","vendor":"jackc","product":"pgproto3","version_end_excluding":"2.3.3"},{"criteria":"cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*","part":"a","vendor":"jackc","product":"pgx","version_end_excluding":"4.18.2"},{"criteria":"cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*","part":"a","vendor":"jackc","product":"pgx","version_start_including":"5.0.0","version_end_excluding":"5.5.4"}],"cpes_truncated":false,"vendors":["jackc"],"products":["jackc/pgproto3","jackc/pgx"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.01484,"percentile":0.74298,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-7jwh-3vrq-q3m8","ecosystem":"Go","name":"github.com/jackc/pgproto3","purl":"pkg:golang/github.com/jackc/pgproto3","ranges":[{"introduced":"0","fixed":"2.3.3"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-7jwh-3vrq-q3m8","ecosystem":"Go","name":"github.com/jackc/pgproto3/v2","purl":"pkg:golang/github.com/jackc/pgproto3/v2","ranges":[{"introduced":"0","fixed":"2.3.3"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2024-2606","ecosystem":"Go","name":"github.com/jackc/pgproto3/v2","purl":"pkg:golang/github.com/jackc/pgproto3/v2","ranges":[{"introduced":"0","fixed":"2.3.3"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-mrww-27vc-gghv","ecosystem":"Go","name":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"introduced":"0","fixed":"4.18.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-mrww-27vc-gghv","ecosystem":"Go","name":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"introduced":"5.0.0","fixed":"5.5.4"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2024-2606","ecosystem":"Go","name":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"introduced":"0"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-mrww-27vc-gghv","ecosystem":"Go","name":"github.com/jackc/pgx/v4","purl":"pkg:golang/github.com/jackc/pgx/v4","ranges":[{"introduced":"0","fixed":"4.18.2"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2024-2606","ecosystem":"Go","name":"github.com/jackc/pgx/v4","purl":"pkg:golang/github.com/jackc/pgx/v4","ranges":[{"introduced":"0","fixed":"4.18.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-mrww-27vc-gghv","ecosystem":"Go","name":"github.com/jackc/pgx/v5","purl":"pkg:golang/github.com/jackc/pgx/v5","ranges":[{"introduced":"5.0.0","fixed":"5.5.4"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2024-2606","ecosystem":"Go","name":"github.com/jackc/pgx/v5","purl":"pkg:golang/github.com/jackc/pgx/v5","ranges":[{"introduced":"5.0.0","fixed":"5.5.4"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2024-27304/","html_en":"/en/cve/CVE-2024-27304/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-27304"},"untrusted":{"vendor_name":"Jackc","product_name":"Pgproto3","desc_en":"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.","affected":[{"untrusted_vendor":"jackc","untrusted_product":"pgx","versions":[]}],"references":[{"url":"https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007","tags":["Patch"]},{"url":"https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8","tags":["Vendor Advisory"]},{"url":"https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4","tags":["Patch"]},{"url":"https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8","tags":["Patch"]},{"url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df","tags":["Patch"]},{"url":"https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv","tags":["Vendor Advisory"]},{"url":"https://www.youtube.com/watch?v=Tfg1B8u1yvE","tags":["Press/Media Coverage"]}]}}