Advisory record · GHSA-m7wr-2xf7-cm9p

pgx SQL Injection via Line Comment Creation

CVSS 8.1 HighEPSS 0.0085 · 58th percentile

Published by the GitHub Advisory Database at 4 Mar 2024, 20:13 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/jackc/pgxGo<4.18.24.18.2
github.com/jackc/pgx/v4Go<4.18.24.18.2
Identifiers
GHSA-m7wr-2xf7-cm9p · CVE-2024-27289 · GO-2024-2605
Weakness (CWE)
CWE-89
Published
4 Mar 2024
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Two packages are affected: github.com/jackc/pgx and github.com/jackc/pgx/v4, both before 4.18.2, fixed in 4.18.2. An attacker who can supply both parameter values for a query that uses the non-default simple protocol, with a numeric placeholder directly after a minus and a string placeholder on the same line, can inject SQL. Upgrade to 4.18.2. Alternatively, avoid the simple protocol or do not place a minus directly before a placeholder.

Written 2 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.1 High 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0085, the 58th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:15 UTC First seen by agentprime
  2. 31 Oct 2026, 14:15 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.