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_...
MediumCVSS 6.5
EPSS 3.5%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql | = 7.2 | No fix listed |
| postgresql | = 7.2.1 | No fix listed |
| postgresql | = 7.2.2 | No fix listed |
| postgresql | = 7.2.3 | No fix listed |
| postgresql | = 7.2.4 | No fix listed |
| postgresql | = 7.2.5 | No fix listed |
| postgresql | = 7.2.6 | No fix listed |
| postgresql | = 7.2.7 | No fix listed |
| postgresql | = 7.3 | No fix listed |
| postgresql | = 7.3.1 | No fix listed |
| postgresql | = 7.3.2 | No fix listed |
| postgresql | = 7.3.3 | No fix listed |
| postgresql | = 7.3.4 | No fix listed |
| postgresql | = 7.3.5 | No fix listed |
| postgresql | = 7.3.6 | No fix listed |
| postgresql | = 7.3.7 | No fix listed |
| postgresql | = 7.3.8 | No fix listed |
| postgresql | = 7.3.9 | No fix listed |
| postgresql | = 7.4 | No fix listed |
| postgresql | = 7.4.1 | No fix listed |
| postgresql | = 7.4.2 | No fix listed |
| postgresql | = 7.4.3 | No fix listed |
| postgresql | = 7.4.4 | No fix listed |
| postgresql | = 7.4.5 | No fix listed |
| postgresql | = 7.4.6 | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql | = 7.4.7 | No fix listed |
| postgresql | = 8.0.0 | No fix listed |
| postgresql | = 8.0.1 | No fix listed |
References
- [pgsql-committers] 20050207 pgsql: Prevent 4 more buffer overruns in the PL/PgSQL parser. mailing-list patch
- 20050210 [USN-79-1] PostgreSQL vulnerabilities mailing-list
- DSA-683 vendor-advisory
- GLSA-200502-19 patch vendor-advisory
- MDKSA-2005:040 vendor-advisory
- SUSE-SA:2005:027 patch vendor-advisory
- SUSE-SA:2005:036 vendor-advisory
- RHSA-2005:138 patch vendor-advisory
- RHSA-2005:150 patch vendor-advisory
- 12417 vdb-entry
- postgresql-readsqlconstruct-bo(19375) vdb-entry
- postgresql-makeselectstmt-input-bo(19376) vdb-entry
- postgresql-makeselectstmt-arbitrary-bo(19377) vdb-entry
- postgresql-fetch-makefetchstmt-bo(19378) vdb-entry
- oval:org.mitre.oval:def:9345 signature vdb-entry