PostgreSQL pgjdbc up to 42.7.1 Simple Query Mode sql injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.4$0-$5k0.00

Summaryinfo

A vulnerability was found in PostgreSQL pgjdbc up to 42.7.1. It has been classified as critical. Impacted is an unknown function of the component Simple Query Mode. The manipulation leads to sql injection. This vulnerability is referenced as CVE-2024-1597. Remote exploitation of the attack is possible. No exploit is available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability was found in PostgreSQL pgjdbc up to 42.7.1 (Database Software). It has been rated as critical. This issue affects an unknown code block of the component Simple Query Mode. The manipulation with an unknown input leads to a sql injection vulnerability. Using CWE to declare the problem leads to CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

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.

The weakness was published 02/19/2024 as GHSA-24rp-q3w6-vc56. The advisory is shared at github.com. The identification of this vulnerability is CVE-2024-1597 since 02/16/2024. Neither technical details nor an exploit are publicly available. MITRE ATT&CK project uses the attack technique T1505 for this issue.

The vulnerability scanner Nessus provides a plugin with the ID 213039 (Debian dla-3995 : libpostgresql-jdbc-java - security update), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 42.2.8, 42.3.9, 42.4.4, 42.5.5, 42.6.1 or 42.7.2 eliminates this vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (213039). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.5
VulDB Meta Temp Score: 8.4

VulDB Base Score: 5.6
VulDB Temp Score: 5.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔍

CNA Base Score: 10.0
CNA Vector (PostgreSQL): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Sql injection
CWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 213039
Nessus Name: Debian dla-3995 : libpostgresql-jdbc-java - security update

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: pgjdbc 42.2.8/42.3.9/42.4.4/42.5.5/42.6.1/42.7.2

Timelineinfo

02/16/2024 🔍
02/19/2024 +3 days 🔍
02/19/2024 +0 days 🔍
12/16/2024 +301 days 🔍

Sourcesinfo

Advisory: GHSA-24rp-q3w6-vc56
Status: Confirmed

CVE: CVE-2024-1597 (🔍)
GCVE (CVE): GCVE-0-2024-1597
GCVE (VulDB): GCVE-100-254105

Entryinfo

Created: 02/19/2024 14:34
Updated: 12/16/2024 17:04
Changes: 02/19/2024 14:34 (49), 02/22/2024 12:13 (2), 03/08/2024 10:21 (1), 06/11/2024 10:39 (26), 12/16/2024 17:04 (3)
Complete: 🔍
Cache ID: 216::103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

 Anonymous User
(+0)
2 years ago
Good morning,
Could you please align the cpe "pgjdbc:pgjdbc" to the official cpe provided by NVD Nist "postgresql:postgresql_jdbc_driver"?
We would appreciate it very much.
Best regards,
TEAM CERT
Thank you, we have just aligned the CPE.

Do you want to use VulDB in your project?

Use the official API to access entries easily!