{"cve":"CVE-2024-27289","nvd":{"published":"2024-03-06T19:15:08.140","modified":"2026-06-17T07:19:34.997","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1},"cwes":["CWE-89"],"references":["https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df","https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p","https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df","https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p","https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/"],"products":["jackc:pgx"],"source":"nvd","synced_at":"2026-10-19T21:46:54.846886191+00:00"},"epss":{"cve":"CVE-2024-27289","score":0.00847,"percentile":0.58092,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m7wr-2xf7-cm9p","url":"https://osv.dev/vulnerability/GHSA-m7wr-2xf7-cm9p","summary":"pgx SQL Injection via Line Comment Creation","modified":"2026-09-10T03:50:10.592342059Z","packages":[{"ecosystem":"Go","name":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":["<4.18.2"],"fixed":["4.18.2"]},{"ecosystem":"Go","name":"github.com/jackc/pgx/v4","purl":"pkg:golang/github.com/jackc/pgx/v4","ranges":["<4.18.2"],"fixed":["4.18.2"]}]},{"id":"GO-2024-2605","url":"https://osv.dev/vulnerability/GO-2024-2605","summary":"SQL injection in github.com/jackc/pgx/v4","modified":"2026-02-04T03:50:07.714601Z","packages":[{"ecosystem":"Go","name":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/jackc/pgx/v4","purl":"pkg:golang/github.com/jackc/pgx/v4","ranges":["<4.18.2"],"fixed":["4.18.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}