SQL Injection Affecting postgresql package, versions [,11.21)[12.0,12.16)[13.0,13.12)[14.0,14.9)[15.0,15.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (73rd 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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-POSTGRESQL-5838567
  • published11 Aug 2023
  • disclosed10 Aug 2023
  • creditMicah Gate, Valerie Woolard, Tim Carey-Smith, Christoph Berg

Introduced: 10 Aug 2023

CVE-2023-39417  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade postgresql to version 11.21, 12.16, 13.12, 14.9, 15.4 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection. An extension script is vulnerable if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, ' ', or " ").

Note:

No bundled extension is vulnerable., The attack prerequisite is an administrator having installed files of a vulnerable, trusted, non-bundled extension. Subject to that prerequisite, this enables an attacker having database-level CREATE privilege to execute arbitrary code as the bootstrap superuser. PostgreSQL will block this attack in the core server, so there's no need to modify individual extensions.

CVSS Scores

version 3.1