the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew  

Vulnerability Details : CVE-2005-0247

Multiple buffer overflows in gram.y for PostgreSQL 8.0.1 and earlier may allow attackers to execute arbitrary code via (1) a large number of variables in a SQL statement being handled by the read_sql_construct function, (2) a large number of INTO variables in a SELECT statement being handled by the make_select_stmt function, (3) a large number of arbitrary variables in a SELECT statement being handled by the make_select_stmt function, and (4) a large number of INTO variables in a FETCH statement being handled by the make_fetch_stmt function, a different set of vulnerabilities than CVE-2005-0245.
Publish Date : 2005-05-02 Last Update Date : 2017-10-10
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
Confidentiality Impact Partial (There is considerable informational disclosure.)
Integrity Impact Partial (Modification of some system files or information is possible, but the attacker does not have control over what can be modified, or the scope of what the attacker can affect is limited.)
Availability Impact Partial (There is reduced performance or interruptions in resource availability.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Single system (The vulnerability requires an attacker to be logged into the system (such as at a command line or via a desktop session or web interface).)
Gained Access User
Vulnerability Type(s) Execute CodeOverflow
CWE ID 119

- Additional Vendor Supplied Data

Vendor Impact CVSS Score CVSS Vector Report Date Publish Date
Redhat 2005-02-01
Redhat moderate 2005-02-07 2005-01-20
If you are a vendor and you have additional data which can be automatically imported into our database, please contact admin @

- Related OVAL Definitions

Title Definition Id Class Family
Buffer overflow in gram.y for PostgreSQL 8.0.0 and earlier may allow attackers to execute arbitrary code via a large num... oval:org.mitre.oval:def:9345 unix
CVE-2005-0247 unix
RHSA-2005:138: postgresql security update (Important) oval:com.redhat.rhsa:def:2005138 unix
RHSA-2005:138: postgresql security update (Important) oval:com.redhat.rhsa:def:20050138 unix
RHSA-2005:141: rh-postgresql security update (Important) oval:com.redhat.rhsa:def:2005141 unix
RHSA-2005:141: rh-postgresql security update (Important) oval:com.redhat.rhsa:def:20050141 unix
OVAL (Open Vulnerability and Assessment Language) definitions define exactly what should be done to verify a vulnerability or a missing patch. Check out the OVAL definitions if you want to learn what you should do to verify a vulnerability.

- Products Affected By CVE-2005-0247

# Product Type Vendor Product Version Update Edition Language
1 Application Postgresql Postgresql 7.2 Version Details Vulnerabilities
2 Application Postgresql Postgresql 7.2.1 Version Details Vulnerabilities
3 Application Postgresql Postgresql 7.2.2 Version Details Vulnerabilities
4 Application Postgresql Postgresql 7.2.3 Version Details Vulnerabilities
5 Application Postgresql Postgresql 7.2.4 Version Details Vulnerabilities
6 Application Postgresql Postgresql 7.2.5 Version Details Vulnerabilities
7 Application Postgresql Postgresql 7.2.6 Version Details Vulnerabilities
8 Application Postgresql Postgresql 7.2.7 Version Details Vulnerabilities
9 Application Postgresql Postgresql 7.3 Version Details Vulnerabilities
10 Application Postgresql Postgresql 7.3.1 Version Details Vulnerabilities
11 Application Postgresql Postgresql 7.3.2 Version Details Vulnerabilities
12 Application Postgresql Postgresql 7.3.3 Version Details Vulnerabilities
13 Application Postgresql Postgresql 7.3.4 Version Details Vulnerabilities
14 Application Postgresql Postgresql 7.3.5 Version Details Vulnerabilities
15 Application Postgresql Postgresql 7.3.6 Version Details Vulnerabilities
16 Application Postgresql Postgresql 7.3.7 Version Details Vulnerabilities
17 Application Postgresql Postgresql 7.3.8 Version Details Vulnerabilities
18 Application Postgresql Postgresql 7.3.9 Version Details Vulnerabilities
19 Application Postgresql Postgresql 7.4 Version Details Vulnerabilities
20 Application Postgresql Postgresql 7.4.1 Version Details Vulnerabilities
21 Application Postgresql Postgresql 7.4.2 Version Details Vulnerabilities
22 Application Postgresql Postgresql 7.4.3 Version Details Vulnerabilities
23 Application Postgresql Postgresql 7.4.4 Version Details Vulnerabilities
24 Application Postgresql Postgresql 7.4.5 Version Details Vulnerabilities
25 Application Postgresql Postgresql 7.4.6 Version Details Vulnerabilities
26 Application Postgresql Postgresql 7.4.7 Version Details Vulnerabilities
27 Application Postgresql Postgresql 8.0.0 Version Details Vulnerabilities
28 Application Postgresql Postgresql 8.0.1 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Postgresql Postgresql 28

- References For CVE-2005-0247
GENTOO GLSA-200502-19
XF postgresql-readsqlconstruct-bo(19375)
XF postgresql-makeselectstmt-arbitrary-bo(19377)
XF postgresql-makeselectstmt-input-bo(19376)
BID 12417 PostgreSQL Multiple Remote Vulnerabilities Release Date:2007-02-15
REDHAT RHSA-2005:150
REDHAT RHSA-2005:138
MLIST [pgsql-committers] 20050207 pgsql: Prevent 4 more buffer overruns in the PL/PgSQL parser.
SUSE SUSE-SA:2005:036
XF postgresql-fetch-makefetchstmt-bo(19378)
SUSE SUSE-SA:2005:027
BUGTRAQ 20050210 [USN-79-1] PostgreSQL vulnerabilities

- Metasploit Modules Related To CVE-2005-0247

There are not any metasploit modules related to this CVE entry (Please visit for more information)

CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.