PostgreSQL up to 8.0 refcursor heap-based overflow

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

Summaryinfo

A vulnerability marked as critical has been reported in PostgreSQL. The affected element is the function refcursor. The manipulation leads to heap-based overflow. This vulnerability is traded as CVE-2005-0245. Furthermore, there is an exploit available. It is suggested to upgrade the affected component.

Detailsinfo

A vulnerability was found in PostgreSQL (Database Software) and classified as critical. This issue affects the function refcursor. The manipulation with an unknown input leads to a heap-based overflow vulnerability. Using CWE to declare the problem leads to CWE-122. A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). Impacted is confidentiality, integrity, and availability. The summary by CVE is:

Buffer overflow in gram.y for PostgreSQL 8.0.0 and earlier may allow attackers to execute arbitrary code via a large number of arguments to a refcursor function (gram.y), which leads to a heap-based buffer overflow, a different vulnerability than CVE-2005-0247.

The bug was discovered 02/01/2005. The weakness was shared 02/01/2005 (Website). The advisory is shared at xforce.iss.net. The identification of this vulnerability is CVE-2005-0245 since 02/08/2005. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a public exploit are known.

A public exploit has been developed in ANSI C. The exploit is available at securityfocus.com. It is declared as proof-of-concept. The vulnerability scanner Nessus provides a plugin with the ID 16465 (Debian DSA-683-1 : postgresql - buffer overflows), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 19147 (PostgreSQL Multiple Remote Vulnerabilities).

Upgrading eliminates this vulnerability. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (19188), Exploit-DB (25076), Tenable (16465), SecurityFocus (BID 12417†) and OSVDB (13774†). The entries VDB-1166, VDB-1168, VDB-1169 and VDB-1167 are related to this item. If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

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

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

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Heap-based overflow
CWE: CWE-122 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 16465
Nessus Name: Debian DSA-683-1 : postgresql - buffer overflows
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 53511
OpenVAS Name: Debian Security Advisory DSA 683-1 (postgresql)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Timelineinfo

02/01/2005 🔍
02/01/2005 +0 days 🔍
02/01/2005 +0 days 🔍
02/01/2005 +0 days 🔍
02/01/2005 +0 days 🔍
02/08/2005 +7 days 🔍
02/15/2005 +7 days 🔍
02/16/2005 +1 days 🔍
05/05/2005 +78 days 🔍
03/10/2015 +3596 days 🔍
07/05/2025 +3770 days 🔍

Sourcesinfo

Product: postgresql.org

Advisory: xforce.iss.net
Status: Confirmed

CVE: CVE-2005-0245 (🔍)
GCVE (CVE): GCVE-0-2005-0245
GCVE (VulDB): GCVE-100-23909

OVAL: 🔍

X-Force: 19188
SecurityFocus: 12417 - PostgreSQL Multiple Remote Vulnerabilities
Secunia: 12948
OSVDB: 13774 - PostgreSQL cursor buffer overflow
Vulnerability Center: 7856 - Buffer Overflow in PostgreSQL <= 8.0.0 via 'refcursor\x27 Function, High

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

Entryinfo

Created: 03/10/2015 15:27
Updated: 07/05/2025 16:32
Changes: 03/10/2015 15:27 (76), 06/05/2019 16:49 (7), 12/23/2024 10:25 (19), 07/05/2025 16:32 (2)
Complete: 🔍
Cache ID: 216::103

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!