CVE-2024-27289

pgx SQL Injection via Line Comment Creation

Published Mar 6, 2024 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0962 pgx SQL Injection via Line Comment Creation
Github GHSA Github GHSA GHSA-m7wr-2xf7-cm9p pgx SQL Injection via Line Comment Creation
History
Type Values Removed Values Added
CPEs cpe:2.3:a:pgx_project:pgx:*:*:*:*:*:go:*:* cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*
Vendors & Products Pgx Project
Pgx Project pgx
Type Values Removed Values Added
First Time appeared Pgx Project
Pgx Project pgx
CPEs cpe:2.3:a:sgx_project:sgx:*:*:*:*:*:go:*:* cpe:2.3:a:pgx_project:pgx:*:*:*:*:*:go:*:*
Vendors & Products Sgx Project
Sgx Project sgx
Pgx Project
Pgx Project pgx
Type Values Removed Values Added
First Time appeared Sgx Project
Sgx Project sgx
CPEs cpe:2.3:a:sgx_project:sgx:*:*:*:*:*:go:*:*
Vendors & Products Sgx Project
Sgx Project sgx
Type Values Removed Values Added
Metrics epss

{'score': 0.00092}

epss

{'score': 0.00095}

Type Values Removed Values Added
First Time appeared Jackc
Jackc pgx
CPEs cpe:2.3:a:jackc:pgx:*:*:*:*:*:*:*:*
Vendors & Products Jackc
Jackc pgx
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.16::el9
Type Values Removed Values Added
First Time appeared Redhat openshift
CPEs cpe:/a:redhat:openshift:4.17::el9
Vendors & Products Redhat openshift
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 12, 2025, 3:45 PM
Reserved
Feb 22, 2024, 6:08 PM
Status
Analyzed
Published
Mar 6, 2024, 7:15 PM
Modified
Jun 17, 2026, 7:19 AM
Severity
Moderate
Public date
Mar 7, 2024, 12:00 AM