ocaml postgresql-ocaml 1.5.4/1.7.0/1.12.1 PQescapeStringConn Remote Code Execution

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

Summaryinfo

A vulnerability was found in ocaml postgresql-ocaml 1.5.4/1.7.0/1.12.1. It has been declared as critical. This impacts the function PQescapeStringConn. The manipulation results in Remote Code Execution. This vulnerability is reported as CVE-2009-2943. No exploit exists.

Detailsinfo

A vulnerability was found in ocaml postgresql-ocaml 1.5.4/1.7.0/1.12.1 (Database Software). It has been classified as critical. Affected is the function PQescapeStringConn. The manipulation with an unknown input leads to a remote code execution vulnerability. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

The postgresql-ocaml bindings 1.5.4, 1.7.0, and 1.12.1 for PostgreSQL libpq do not properly support the PQescapeStringConn function, which might allow remote attackers to leverage escaping issues involving multibyte character encodings.

The bug was discovered 10/14/2009. The weakness was disclosed 10/14/2009 (Website). The advisory is shared for download at debian.org. This vulnerability is traded as CVE-2009-2943. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 1 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 44774 (Debian DSA-1909-1 : postgresql-ocaml - missing escape function), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 116700 (Fedora Update for OCaml-PostgreSQL (FEDORA-2009-10595, FEDORA-2009-10633)).

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

The vulnerability is also documented in the databases at Tenable (44774), OSVDB (59029†) and Vulnerability Center (SBV-24053†). Once again VulDB remains the best source for vulnerability data.

Productinfo

Type

Vendor

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 7.3

VulDB Base Score: 7.3
VulDB Temp Score: 7.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Remote Code Execution
CWE: Unknown
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: 44774
Nessus Name: Debian DSA-1909-1 : postgresql-ocaml - missing escape function
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 66057
OpenVAS Name: Debian Security Advisory DSA 1909-1 (postgresql-ocaml)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔍

Timelineinfo

08/23/2009 🔍
10/14/2009 +52 days 🔍
10/14/2009 +0 days 🔍
10/15/2009 +1 days 🔍
10/20/2009 +4 days 🔍
10/22/2009 +2 days 🔍
11/16/2009 +25 days 🔍
02/24/2010 +100 days 🔍
03/18/2015 +1848 days 🔍
03/25/2025 +3660 days 🔍

Sourcesinfo

Advisory: debian.org
Status: Not defined

CVE: CVE-2009-2943 (🔍)
GCVE (CVE): GCVE-0-2009-2943
GCVE (VulDB): GCVE-100-50532

OVAL: 🔍

OSVDB: 59029 - postgresql-ocaml for PostgreSQL PQescapeStringConn() Function Character Escaping Weakness
Vulnerability Center: 24053 - PostgreSQL postgresql-ocaml bindings 1.5.4, 1.7.0 and 1.12.1 Remote SQL Injection Vulnerability, High

Entryinfo

Created: 03/18/2015 15:15
Updated: 03/25/2025 23:03
Changes: 03/18/2015 15:15 (59), 02/17/2017 11:19 (7), 08/24/2021 09:59 (3), 08/24/2021 10:04 (1), 03/25/2025 23:03 (17)
Complete: 🔍
Cache ID: 216:C02:103

Once again VulDB remains the best 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!