CVE-2024-27289: Golang github jackc pgx · pgx is a PostgreSQL driver and toolkit for Go
Affects golang-github-jackc-pgxSource GCVE Database
Not known to be exploited · CVSS 8.1 High · fixed in 4.18.2 : patch golang-github-jackc-pgx soon.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.18.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 6 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-github-jackc-pgxpkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-github-jackc-pgxpkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-github-jackc-pgxpkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgolang-github-jackc-pgxpkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSgolang-github-jackc-pgxpkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-27289 (opens in a new tab)
- github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p (opens in a new tab)
- github.com/jackc/pgx/commit/826a89229b8b1cdf18e4190afa437d3df9901b9c (opens in a new tab)
- github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-27289 (opens in a new tab)