-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 2023.7, 2021.49
-
Component/s: Distribution / Installers
-
Release Notes Summary:The PostgreSQL driver was upgraded from 42.3.8 to 42.7.2.
-
Tags:
-
Backlog priority:900
Client reported vulnerability flagged by Prisma scan
pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there is no vulnerability. 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. By constructing a matching string payload, the attacker can inject SQL to alter the query,bypassing the protections that parameterized queries bring against SQL Injection attacks. Versions before 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, and 42.2.8 are affected.
LTS 2021 uses postgresql-42.3.8.jar => should be upgraded at least to 42.3.9
LTS 2023 uses postgresql-42.6.0.jar => should be upgraded at least to 42.6.1
Ideally both LTS should be aligned against postgresql 42.7.2 or later if it does not bring any issue/regression.