Skip to content
Fencer Vulns
medium 6.5

CVE-2005-0247 json

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 o…

published 2005-02-08 21 y ago modified 2026-06-16 4 mo ago also EUVD-2005-0248

cvss
6.5
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.5%
EPSS 3.5% chance of exploitation in 30 days, percentile 89%
public exploits
0
none known

Summary

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.

Patch / fix

  • postgresql RHEL 4 7.4.7-2.RHEL4.1
  • postgresql-pl RHEL 4 7.4.7-2.RHEL4.1
  • postgresql-tcl RHEL 4 7.4.7-2.RHEL4.1
  • postgresql-jdbc RHEL 4 7.4.7-2.RHEL4.1
  • postgresql-libs RHEL 4 7.4.7-2.RHEL4.1
  • postgresql-test RHEL 4 7.4.7-2.RHEL4.1
  • postgresql-python RHEL 4 7.4.7-2.RHEL4.1
  • postgresql-server RHEL 4 7.4.7-2.RHEL4.1

red hat advisories RHSA-2005:138RHSA-2005:141

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2005-0247 updated

security flaw

  • Red Hat Desktop version 3 rh-postgresql 7.3.9-2, rh-postgresql-pl 7.3.9-2, rh-postgresql-tcl 7.3.9-2, rh-postgresql-jdbc 7.3.9-2, rh-postgresql-libs 7.3.9-2, rh-postgresql-test 7.3.9-2, +3 more Red Hat Enterprise Linux AS version 3 rh-postgresql 7.3.9-2, rh-postgresql-pl 7.3.9-2, rh-postgresql-tcl 7.3.9-2, rh-postgresql-jdbc 7.3.9-2, rh-postgresql-libs 7.3.9-2, rh-postgresql-test 7.3.9-2, +3 more
    fixed: vendor fix RHSA-2005:141
  • Red Hat Enterprise Linux AS version 4 postgresql 7.4.7-2.RHEL4.1, postgresql-pl 7.4.7-2.RHEL4.1, postgresql-tcl 7.4.7-2.RHEL4.1, postgresql-jdbc 7.4.7-2.RHEL4.1, postgresql-libs 7.4.7-2.RHEL4.1, postgresql-test 7.4.7-2.RHEL4.1, +3 more Red Hat Enterprise Linux Desktop version 4 postgresql 7.4.7-2.RHEL4.1, postgresql-pl 7.4.7-2.RHEL4.1, postgresql-tcl 7.4.7-2.RHEL4.1, postgresql-jdbc 7.4.7-2.RHEL4.1, postgresql-libs 7.4.7-2.RHEL4.1, postgresql-test 7.4.7-2.RHEL4.1, +3 more
    fixed: vendor fix RHSA-2005:138
  • Red Hat Enterprise Linux ES version 2.1
    fixed: vendor fix RHSA-2005:150
  • Red Hat Enterprise Linux ES version 3 rh-postgresql 7.3.9-2, rh-postgresql-pl 7.3.9-2, rh-postgresql-tcl 7.3.9-2, rh-postgresql-jdbc 7.3.9-2, rh-postgresql-libs 7.3.9-2, rh-postgresql-test 7.3.9-2, +3 more
    fixed: vendor fix RHSA-2005:141
  • Red Hat Enterprise Linux ES version 4 postgresql 7.4.7-2.RHEL4.1, postgresql-pl 7.4.7-2.RHEL4.1, postgresql-tcl 7.4.7-2.RHEL4.1, postgresql-jdbc 7.4.7-2.RHEL4.1, postgresql-libs 7.4.7-2.RHEL4.1, postgresql-test 7.4.7-2.RHEL4.1, +3 more
    fixed: vendor fix RHSA-2005:138
  • Red Hat Enterprise Linux WS version 2.1
    fixed: vendor fix RHSA-2005:150
  • Red Hat Enterprise Linux WS version 3 rh-postgresql 7.3.9-2, rh-postgresql-pl 7.3.9-2, rh-postgresql-tcl 7.3.9-2, rh-postgresql-jdbc 7.3.9-2, rh-postgresql-libs 7.3.9-2, rh-postgresql-test 7.3.9-2, +3 more
    fixed: vendor fix RHSA-2005:141
  • Red Hat Enterprise Linux WS version 4 postgresql 7.4.7-2.RHEL4.1, postgresql-pl 7.4.7-2.RHEL4.1, postgresql-tcl 7.4.7-2.RHEL4.1, postgresql-jdbc 7.4.7-2.RHEL4.1, postgresql-libs 7.4.7-2.RHEL4.1, postgresql-test 7.4.7-2.RHEL4.1, +3 more
    fixed: vendor fix RHSA-2005:138
show 1 more
  • Red Hat Linux Advanced Workstation 2.1
    fixed: vendor fix RHSA-2005:150

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.51% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 2.0 6.5 AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.