|
| 1 | +From 85fab788520b73e514e52e0753d36dafdf513e5b Mon Sep 17 00:00:00 2001 |
| 2 | +From: Nick Larsen <nick.larsen@stackable.tech> |
| 3 | +Date: Thu, 15 May 2025 14:14:28 +0200 |
| 4 | +Subject: Fix CVE-2024-1597 |
| 5 | + |
| 6 | +See https://github.com/stackabletech/vulnerabilities/issues/681 |
| 7 | + |
| 8 | +pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using |
| 9 | +PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there |
| 10 | +is no vulnerability. A placeholder for a numeric value must be immediately |
| 11 | +preceded by a minus. There must be a second placeholder for a string value after |
| 12 | +the first placeholder; both must be on the same line. By constructing a matching |
| 13 | +string payload, the attacker can inject SQL to alter the query,bypassing the |
| 14 | +protections that parameterized queries bring against SQL Injection attacks. |
| 15 | +Versions before 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, and 42.2.28 are |
| 16 | +affected. |
| 17 | +--- |
| 18 | + pom.xml | 2 +- |
| 19 | + standalone-metastore/pom.xml | 2 +- |
| 20 | + 2 files changed, 2 insertions(+), 2 deletions(-) |
| 21 | + |
| 22 | +diff --git a/pom.xml b/pom.xml |
| 23 | +index a4dfc8d1e4..699228cba3 100644 |
| 24 | +--- a/pom.xml |
| 25 | ++++ b/pom.xml |
| 26 | +@@ -178,7 +178,7 @@ |
| 27 | + <mariadb.version>2.5.0</mariadb.version> |
| 28 | + <mssql.version>6.2.1.jre8</mssql.version> |
| 29 | + <mysql.version>8.0.31</mysql.version> |
| 30 | +- <postgres.version>42.5.1</postgres.version> |
| 31 | ++ <postgres.version>42.5.6</postgres.version> |
| 32 | + <oracle.version>21.3.0.0</oracle.version> |
| 33 | + <opencsv.version>2.3</opencsv.version> |
| 34 | + <orc.version>1.8.5</orc.version> |
| 35 | +diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml |
| 36 | +index cd34884e3b..da84c8928e 100644 |
| 37 | +--- a/standalone-metastore/pom.xml |
| 38 | ++++ b/standalone-metastore/pom.xml |
| 39 | +@@ -72,7 +72,7 @@ |
| 40 | + <mariadb.version>2.5.0</mariadb.version> |
| 41 | + <mssql.version>6.2.1.jre8</mssql.version> |
| 42 | + <mysql.version>8.0.31</mysql.version> |
| 43 | +- <postgres.version>42.5.1</postgres.version> |
| 44 | ++ <postgres.version>42.5.6</postgres.version> |
| 45 | + <oracle.version>21.3.0.0</oracle.version> |
| 46 | + <dropwizard-metrics-hadoop-metrics2-reporter.version>0.1.2 |
| 47 | + </dropwizard-metrics-hadoop-metrics2-reporter.version> |
0 commit comments