CWE
119
Advisory Published
Updated

CVE-2005-0247: Buffer Overflow

First published: Tue Feb 08 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 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
PostgreSQL JDBC Driver=7.2.7
PostgreSQL JDBC Driver=7.3.3
PostgreSQL JDBC Driver=7.2
PostgreSQL JDBC Driver=7.3
PostgreSQL JDBC Driver=7.4.1
PostgreSQL JDBC Driver=7.3.9
PostgreSQL JDBC Driver=7.2.3
PostgreSQL JDBC Driver=8.0.0
PostgreSQL JDBC Driver=7.2.6
PostgreSQL JDBC Driver=7.4.6
PostgreSQL JDBC Driver=7.4.7
PostgreSQL JDBC Driver=7.4.3
PostgreSQL JDBC Driver=7.3.6
PostgreSQL JDBC Driver=7.2.5
PostgreSQL JDBC Driver=7.4.5
PostgreSQL JDBC Driver=7.3.8
PostgreSQL JDBC Driver=7.4
PostgreSQL JDBC Driver=7.4.4
PostgreSQL JDBC Driver=8.0.1
PostgreSQL JDBC Driver=7.2.2
PostgreSQL JDBC Driver=7.3.2
PostgreSQL JDBC Driver=7.3.5
PostgreSQL JDBC Driver=7.2.4
PostgreSQL JDBC Driver=7.3.1
PostgreSQL JDBC Driver=7.3.7
PostgreSQL JDBC Driver=7.2.1
PostgreSQL JDBC Driver=7.4.2
PostgreSQL JDBC Driver=7.3.4

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203