{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-27289","published":"2024-03-06T19:15:08.140000Z","last_modified":"2026-06-17T07:19:34.997000Z","status":"Analyzed","cvss":{"version":"3.1","score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-89"],"cpes":[{"criteria":"cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*","part":"a","vendor":"jackc","product":"pgx","version_end_excluding":"4.18.2"}],"cpes_truncated":false,"vendors":["jackc"],"products":["jackc/pgx"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"epss":{"score":0.01161,"percentile":0.67049,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-m7wr-2xf7-cm9p","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":"GO-2024-2605","ecosystem":"Go","name":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"introduced":"0"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-m7wr-2xf7-cm9p","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-2605","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}],"severity":"high","priority_score":64,"links":{"html_es":"/es/cve/CVE-2024-27289/","html_en":"/en/cve/CVE-2024-27289/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-27289","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-27289"},"untrusted":{"vendor_name":"Jackc","product_name":"Pgx","desc_en":"pgx is a PostgreSQL driver and toolkit for Go. Prior to version 4.18.2, SQL injection can occur when all of the following conditions are met: the non-default simple protocol is used; a placeholder for a numeric value must be immediately preceded by a minus; there must be a second placeholder for a string value after the first placeholder; both must be on the same line; and both parameter values must be user-controlled. The problem is resolved in v4.18.2. As a workaround, do not use the simple protocol or do not place a minus directly before a placeholder.","affected":[{"untrusted_vendor":"jackc","untrusted_product":"pgx","versions":[]}],"references":[{"url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df","tags":["Patch"]},{"url":"https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p","tags":["Vendor Advisory"]},{"url":"https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/","tags":["Third Party Advisory"]}]}}