CVE Database›CVE-2024-27289

CVE-2024-27289

pgx: SQL Injection via Line Comment Creation

Loading…

Severity

Moderate

Red Hat Product Security

8.1

CVSS 3.1

Review impact separately from score.

Published · March 7, 2024

Updated · November 1, 2026

Description

A flaw was found in pgx. SQL injection can occur when all of the following conditions are met in versions before 4.18.2 of pgx. 

  • 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
  • Both parameter values must be user-controlled

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

A possible mitigation is to not use the simple protocol or do not place a minus directly before a placeholder.

CVSS / CWE

CVSS 3.1 · 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CWE-89 · Improper Neutralization of Special Elements used in an SQL Command