SQL Injection Affecting postgresql15-private-libs package, versions <0:15.0-1.amzn2023.0.4


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.38% (74th 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-AMZN2023-POSTGRESQL15PRIVATELIBS-5887675
  • published8 Sept 2023
  • disclosed11 Aug 2023

Introduced: 11 Aug 2023

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

How to fix?

Upgrade Amazon-Linux:2023 postgresql15-private-libs to version 0:15.0-1.amzn2023.0.4 or higher.
This issue was patched in ALAS2023-2023-322.

NVD Description

Note: Versions mentioned in the description apply only to the upstream postgresql15-private-libs package and not the postgresql15-private-libs package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

IN THE EXTENSION SCRIPT, a SQL Injection vulnerability was found in PostgreSQL if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, '', or ""). If an administrator has installed files of a vulnerable, trusted, non-bundled extension, an attacker with database-level CREATE privilege can execute arbitrary code as the bootstrap superuser.

CVSS Scores

version 3.1