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
- archives.postgresql.org/pgsql-committers/2005-02/msg00049.php patch
- gentoo.org/security/en/glsa/glsa-200502-19.xml advisory
- novell.com/linux/security/advisories/2005_27_postgresql.html advisory
- redhat.com/support/errata/RHSA-2005-138.html advisory
- redhat.com/support/errata/RHSA-2005-150.html advisory
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 morefixed: 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 morefixed: vendor fix RHSA-2005:138
-
Red Hat Enterprise Linux ES version 2.1fixed: 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 morefixed: 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 morefixed: vendor fix RHSA-2005:138
-
Red Hat Enterprise Linux WS version 2.1fixed: 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 morefixed: 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 morefixed: vendor fix RHSA-2005:138
show 1 moreshow fewer
-
Red Hat Linux Advanced Workstation 2.1fixed: 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
-
gentoo.org
/security/en/glsa/glsa-200502-19.xml
vendor-advisory, patch
-
novell.com
/linux/security/advisories/2005_27_postgresql.html
vendor-advisory, patch
-
redhat.com
/support/errata/RHSA-2005-138.html
vendor-advisory, patch
-
redhat.com
/support/errata/RHSA-2005-150.html
vendor-advisory, patch
-
archives.postgresql.org
/pgsql-committers/2005-02/msg00049.php
mailing-list, patch
-
mandriva.com
/security/advisories?name=MDKSA-2005:040
vendor-advisory
-
debian.org
/security/2005/dsa-683
vendor-advisory
-
novell.com
/linux/security/advisories/2005_36_sudo.html
vendor-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/19377
vdb-entry
-
marc.info
/?l=bugtraq&m=110806034116082&w=2
mailing-list
-
exchange.xforce.ibmcloud.com
/vulnerabilities/19375
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/19376
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/19378
vdb-entry
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9345
vdb-entry, signature
-
securityfocus.com
/bid/12417
vdb-entry
Sources
- CVE List CVE-2005-0247
- NVD CVE-2005-0247
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.