Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2024-27289

Summary
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
Published At-06 Mar, 2024 | 18:28
Updated At-12 Jun, 2025 | 15:45
Rejected At-
Credits

pgx SQL Injection via Line Comment Creation

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:GitHub_M
Assigner Org ID:a0819718-46f1-4df5-94e2-005712e83aaa
Published At:06 Mar, 2024 | 18:28
Updated At:12 Jun, 2025 | 15:45
Rejected At:
▼CVE Numbering Authority (CNA)
pgx SQL Injection via Line Comment Creation

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.

Affected Products
Vendor
jackc
Product
pgx
Versions
Affected
  • < 4.18.2
Problem Types
TypeCWE IDDescription
CWECWE-89CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Type: CWE
CWE ID: CWE-89
Description: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Metrics
VersionBase scoreBase severityVector
3.18.1HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Version: 3.1
Base score: 8.1
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p
x_refsource_CONFIRM
https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
x_refsource_MISC
Hyperlink: https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p
Resource:
x_refsource_CONFIRM
Hyperlink: https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
Resource:
x_refsource_MISC
▼Authorized Data Publishers (ADP)
1. CISA ADP Vulnrichment
Affected Products
Vendor
jackc
Product
pgx
CPEs
  • cpe:2.3:a:jackc:pgx:*:*:*:*:*:*:*:*
Default Status
unknown
Versions
Affected
  • From 0 before 4.18.2 (custom)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
2. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/
N/A
https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p
x_refsource_CONFIRM
x_transferred
https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
x_refsource_MISC
x_transferred
Hyperlink: https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/
Resource: N/A
Hyperlink: https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p
Resource:
x_refsource_CONFIRM
x_transferred
Hyperlink: https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
Resource:
x_refsource_MISC
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security-advisories@github.com
Published At:06 Mar, 2024 | 19:15
Updated At:12 Jun, 2025 | 16:15

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.18.1HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Type: Secondary
Version: 3.1
Base score: 8.1
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CPE Matches

Weaknesses
CWE IDTypeSource
CWE-89Secondarysecurity-advisories@github.com
CWE ID: CWE-89
Type: Secondary
Source: security-advisories@github.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81dfsecurity-advisories@github.com
N/A
https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9psecurity-advisories@github.com
N/A
https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81dfaf854a3a-2127-422b-91ae-364da2661108
N/A
https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9paf854a3a-2127-422b-91ae-364da2661108
N/A
https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/af854a3a-2127-422b-91ae-364da2661108
N/A
Hyperlink: https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found