Live threats

All CVEs / Postgresql

CVE-2005-0247Postgresql

Medium 6.5

Priority
39
CVSS 2.0
6.5
EPSS
3.5%
probability of exploitation in 30 days · percentile 90
Auth required
Yes
Published
May 2, 2005
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-119
Vector
AV:N/AC:L/Au:S/C:P/I:P/A:P

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Postgresql.

Affected products (CPE)

VendorProductVersions
postgresqlpostgresql7.2
postgresqlpostgresql7.2.1
postgresqlpostgresql7.2.2
postgresqlpostgresql7.2.3
postgresqlpostgresql7.2.4
postgresqlpostgresql7.2.5
postgresqlpostgresql7.2.6
postgresqlpostgresql7.2.7
postgresqlpostgresql7.3
postgresqlpostgresql7.3.1
postgresqlpostgresql7.3.2
postgresqlpostgresql7.3.3
postgresqlpostgresql7.3.4
postgresqlpostgresql7.3.5
postgresqlpostgresql7.3.6
postgresqlpostgresql7.3.7
postgresqlpostgresql7.3.8
postgresqlpostgresql7.3.9
postgresqlpostgresql7.4
postgresqlpostgresql7.4.1
postgresqlpostgresql7.4.2
postgresqlpostgresql7.4.3
postgresqlpostgresql7.4.4
postgresqlpostgresql7.4.5
postgresqlpostgresql7.4.6
postgresqlpostgresql7.4.7
postgresqlpostgresql8.0.0
postgresqlpostgresql8.0.1

Official sources

References

Links published by the sources. Open them with care.