PostgreSQL up to 17.2 quoting syntax

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.
7.9$0-$5k0.00

Summaryinfo

A vulnerability has been found in PostgreSQL up to 13.18/14.15/15.10/16.6/17.2 and classified as critical. This impacts the function PQescapeLiteral/PQescapeIdentifier/PQescapeString/PQescapeStringConn. This manipulation causes quoting syntax. This vulnerability is handled as CVE-2025-1094. The attack can be initiated remotely. There is not any exploit available. The affected component should be upgraded.

Detailsinfo

A vulnerability was found in PostgreSQL up to 13.18/14.15/15.10/16.6/17.2. It has been declared as critical. Affected by this vulnerability is the function PQescapeLiteral/PQescapeIdentifier/PQescapeString/PQescapeStringConn. The manipulation with an unknown input leads to a quoting syntax vulnerability. The CWE definition for the vulnerability is CWE-149. Quotes injected into a product can be used to compromise a system. As data are parsed, an injected/absent/duplicate/malformed use of quotes may cause the process to take unexpected actions. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

Improper neutralization of quoting syntax in PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() allows a database input provider to achieve SQL injection in certain usage patterns. Specifically, SQL injection requires the application to use the function result to construct input to psql, the PostgreSQL interactive terminal. Similarly, improper neutralization of quoting syntax in PostgreSQL command line utility programs allows a source of command line arguments to achieve SQL injection when client_encoding is BIG5 and server_encoding is one of EUC_TW or MULE_INTERNAL. Versions before PostgreSQL 17.3, 16.7, 15.11, 14.16, and 13.19 are affected.

It is possible to read the advisory at postgresql.org. This vulnerability is known as CVE-2025-1094 since 02/06/2025. The exploitation appears to be difficult. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details of the vulnerability are known, but there is no available exploit.

It is declared as attacked. The vulnerability scanner Nessus provides a plugin with the ID 216248 (Debian dla-4052 : libecpg-compat3 - security update), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 13.19, 14.16, 15.11, 16.7 or 17.3 eliminates this vulnerability.

The vulnerability is also documented in the databases at Zero-Day.cz (967), Tenable (216248) and CERT Bund (WID-SEC-2025-0372). Be aware that VulDB is the high quality source for vulnerability data.

Affected

  • Debian Linux
  • Amazon Linux 2
  • Red Hat Enterprise Linux
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • SUSE openSUSE
  • RESF Rocky Linux
  • Dell NetWorker
  • Dell Avamar
  • Qlik Sense
  • Open Source PostgreSQL
  • Progress Software WS_FTP
  • IBM QRadar SIEM
  • Broadcom Brocade SANnav

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.1
VulDB Meta Temp Score: 7.9

VulDB Base Score: 8.1
VulDB Temp Score: 7.7
VulDB Vector: 🔍
VulDB Reliability: 🔍

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

CVSSv2info

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

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

Exploitinginfo

Class: Quoting syntax
CWE: CWE-149 / CWE-20
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Attacked

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 216248
Nessus Name: Debian dla-4052 : libecpg-compat3 - security update

Zero-Day.cz: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: PostgreSQL 13.19/14.16/15.11/16.7/17.3

Timelineinfo

02/06/2025 🔍
02/13/2025 +7 days 🔍
02/13/2025 +0 days 🔍
08/02/2025 +170 days 🔍

Sourcesinfo

Product: postgresql.org

Advisory: postgresql.org
Status: Confirmed

CVE: CVE-2025-1094 (🔍)
GCVE (CVE): GCVE-0-2025-1094
GCVE (VulDB): GCVE-100-295711
CERT Bund: WID-SEC-2025-0372 - PostgreSQL: Schwachstelle ermöglicht SQL Injection und Codeausführung

scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 02/13/2025 14:39
Updated: 08/02/2025 17:13
Changes: 02/13/2025 14:39 (63), 02/14/2025 10:28 (2), 02/15/2025 20:33 (6), 02/17/2025 01:09 (1), 08/02/2025 17:13 (7)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!