Servers and applications
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…
- Severity
- Medium 6.5
- Published
- 2 May 2005
- Last changed
- 16 Jun 2026
- Added to UpHeron
- 16 Oct 2026
- Exploit chance
- 3.5% in the next 30 daysHigher than 89% of CVEs. EPSS by FIRST, 12 Nov 2026
- Weakness
- Memory buffer errors (CWE-119)
- Attack
- Over the network · Needs a login
- Attacker can
- Read some data · Change some data · Slow it down
- CVSS vector
AV:N/AC:L/Au:S/C:P/I:P/A:P- Sources
- NVD
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 software
| Software | Affected versions |
|---|---|
PostgreSQLServers and applications · cpe:a:postgresql:postgresql |
All 28 release lines
|