CVE-2005-0247: Buffer Overflow

Published Feb 8, 2005
·
Updated

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 readsqlconstruct function, (2) a large number of INTO variables in a SELECT statement being handled by the makeselectstmt function, (3) a large number of arbitrary variables in a SELECT statement being handled by the makeselectstmt function, and (4) a large number of INTO variables in a FETCH statement being handled by the makefetchstmt function, a different set of vulnerabilities than CVE-2005-0245.

Affected Software

28 affected components
PostgreSQL postgresql=7.2
PostgreSQL postgresql=7.2.1
PostgreSQL postgresql=7.2.2
PostgreSQL postgresql=7.2.3
PostgreSQL postgresql=7.2.4
PostgreSQL postgresql=7.2.5
PostgreSQL postgresql=7.2.6
PostgreSQL postgresql=7.2.7
PostgreSQL postgresql=7.3
PostgreSQL postgresql=7.3.1
PostgreSQL postgresql=7.3.2
PostgreSQL postgresql=7.3.3
PostgreSQL postgresql=7.3.4
PostgreSQL postgresql=7.3.5
PostgreSQL postgresql=7.3.6
PostgreSQL postgresql=7.3.7
PostgreSQL postgresql=7.3.8
PostgreSQL postgresql=7.3.9
PostgreSQL postgresql=7.4
PostgreSQL postgresql=7.4.1
PostgreSQL postgresql=7.4.2
PostgreSQL postgresql=7.4.3
PostgreSQL postgresql=7.4.4
PostgreSQL postgresql=7.4.5
PostgreSQL postgresql=7.4.6
PostgreSQL postgresql=7.4.7
PostgreSQL postgresql=8.0.0
PostgreSQL postgresql=8.0.1

Event History

Feb 8, 2005
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2005-0247?

CVE-2005-0247 has been classified as a high-severity vulnerability due to its potential for allowing arbitrary code execution.

2

How do I fix CVE-2005-0247?

To mitigate CVE-2005-0247, upgrade your PostgreSQL to version 8.0.2 or later where the vulnerability has been patched.

3

Which PostgreSQL versions are affected by CVE-2005-0247?

CVE-2005-0247 affects PostgreSQL versions 8.0.1 and earlier, as well as various earlier versions like 7.2.x, 7.3.x, and 7.4.x.

4

What types of attacks can exploit CVE-2005-0247?

Attackers can exploit CVE-2005-0247 through SQL statements with an excessive number of variables, leading to buffer overflow conditions.

5

Is there a workaround to prevent CVE-2005-0247 without upgrading?

While upgrading to a patched version is the best solution, limiting SQL statement sizes and variable counts may temporarily reduce risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203