{"schema_version":"1.3.1","id":"GO-2024-2605","modified":"2024-09-13T14:18:38Z","published":"2024-03-11T20:08:05Z","aliases":["CVE-2024-27289","GHSA-m7wr-2xf7-cm9p"],"summary":"SQL injection in github.com/jackc/pgx/v4","details":"SQL injection is possible when the database uses the non-default simple protocol, a minus sign directly precedes a numeric placeholder followed by a string placeholder on the same line, and both parameter values are user-controlled.","affected":[{"package":{"name":"github.com/jackc/pgx","ecosystem":"Go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/jackc/pgx/internal/sanitize","symbols":["Query.Sanitize","SanitizeSQL"]}]}},{"package":{"name":"github.com/jackc/pgx/v4","ecosystem":"Go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.18.2"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/jackc/pgx/v4/internal/sanitize","symbols":["Query.Sanitize","SanitizeSQL"]}]}}],"references":[{"type":"ADVISORY","url":"https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p"},{"type":"FIX","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"}],"credits":[{"name":"paul-gerste-sonarsource"}],"database_specific":{"url":"https://pkg.go.dev/vuln/GO-2024-2605","review_status":"REVIEWED"}}