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 Software | Affected Version | How 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 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2005-0247 has been classified as a high-severity vulnerability due to its potential for allowing arbitrary code execution.
To mitigate CVE-2005-0247, upgrade your PostgreSQL to version 8.0.2 or later where the vulnerability has been patched.
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.
Attackers can exploit CVE-2005-0247 through SQL statements with an excessive number of variables, leading to buffer overflow conditions.
While upgrading to a patched version is the best solution, limiting SQL statement sizes and variable counts may temporarily reduce risk.