SQL Injection Affecting cloudnative-pg package, versions <1.29.0-r5


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.36% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-CLOUDNATIVEPG-16436927
  • published6 May 2026
  • disclosed8 May 2026

Introduced: 6 May 2026

CVE-2026-41889  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade Chainguard cloudnative-pg to version 1.29.0-r5 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cloudnative-pg package and not the cloudnative-pg package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

pgx is a PostgreSQL driver and toolkit for Go. Prior to version 5.9.2, SQL injection can occur when the non-default simple protocol is used, a dollar quoted string literal is used in the SQL query, that string literal contains text that would be would be interpreted as a placeholder outside of a string literal, and the value of that placeholder is controllable by the attacker. This issue has been patched in version 5.9.2.

CVSS Base Scores

version 3.1