Buffer overflow in PostgreSQL
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.5 (Medium). Vector: AV:N/AC:L/Au:S/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.035, 89.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PostgreSQL — versions 7.2, 7.2.1, 7.2.2
Weakness classification (CWE)
References
- [pgsql-committers] 20050207 pgsql: Prevent 4 more buffer overruns in the PL/PgSQL parser. (mailing-list, Patch)
- postgresql-makeselectstmt-arbitrary-bo(19377) (vdb-entry)
- GLSA-200502-19 (vendor-advisory, Patch, Vendor Advisory)
- MDKSA-2005:040 (vendor-advisory)
- 20050210 [USN-79-1] PostgreSQL vulnerabilities (mailing-list)
- SUSE-SA:2005:027 (vendor-advisory, Patch, Vendor Advisory)
- postgresql-readsqlconstruct-bo(19375) (vdb-entry)
- RHSA-2005:138 (vendor-advisory, Patch, Vendor Advisory)
- postgresql-makeselectstmt-input-bo(19376) (vdb-entry)
- RHSA-2005:150 (vendor-advisory, Patch, Vendor Advisory)