CVE-2005-0247
Multiple buffer overflows in gram.y for PostgreSQL 8.0.1 and earlier may allow attackers to...
CVE-2005-0247 is a medium vulnerability (CVSS 6.5) in Postgresql, published February 8, 2005. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.51%, the 89th percentile. Fixed in postgresql 7.2.1-2woody8.
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.
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2005-0247- CVSS 2.0
- 6.5 Medium
AV:N/AC:L/Au:S/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2005-0247- Updated
- 2026-11-02
EUVDEUVD-2005-0248 No score
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.
- Record
EUVD-2005-0248- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-ggh8-6p3g-2rw7 No score
Multiple buffer overflows in gram.y for PostgreSQL 8.0.1 and earlier may allow attackers to...
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.
- Record
GHSA-ggh8-6p3g-2rw7- Weakness
- CWE-119
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
postgresqlDebian:3.0 |
before 7.2.1-2woody8, plus listed versions 7.2.1-2woody6 |
7.2.1-2woody8 |
postgresqlRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-contribRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-debuginfoRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-develRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-docsRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-jdbcRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-libsRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-plRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-pythonRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
Show 87 moreShow less
| Package | Affected | Fixed |
|---|---|---|
postgresql-serverRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-tclRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-testRed Hat:enterprise_linux:4::as |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresqlRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-contribRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-debuginfoRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-develRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-docsRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-jdbcRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-libsRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-plRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-pythonRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-serverRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-tclRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-testRed Hat:enterprise_linux:4::desktop |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresqlRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-contribRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-debuginfoRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-develRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-docsRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-jdbcRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-libsRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-plRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-pythonRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-serverRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-tclRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-testRed Hat:enterprise_linux:4::es |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresqlRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-contribRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-debuginfoRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-develRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-docsRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-jdbcRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-libsRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-plRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-pythonRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-serverRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-tclRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
postgresql-testRed Hat:enterprise_linux:4::ws |
before 0:7.4.7-2.RHEL4.1 | 0:7.4.7-2.RHEL4.1 |
rh-postgresqlRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-contribRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-debuginfoRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-develRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-docsRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-jdbcRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-libsRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-plRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-pythonRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-serverRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-tclRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-testRed Hat:enterprise_linux:3::as |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresqlRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-contribRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-debuginfoRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-develRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-docsRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-jdbcRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-libsRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-plRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-pythonRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-serverRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-tclRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-testRed Hat:enterprise_linux:3::desktop |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresqlRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-contribRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-debuginfoRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-develRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-docsRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-jdbcRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-libsRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-plRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-pythonRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-serverRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-tclRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-testRed Hat:enterprise_linux:3::es |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresqlRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-contribRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-debuginfoRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-develRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-docsRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-jdbcRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-libsRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-plRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-pythonRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-serverRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-tclRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
rh-postgresql-testRed Hat:enterprise_linux:3::ws |
before 0:7.3.9-2 | 0:7.3.9-2 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
archives.postgresql.org/pgsql-committers/2005-02/msg00049.php
exchange.xforce.ibmcloud.com/vulnerabilities/19377
gentoo.org/security/en/glsa/glsa-200502-19.xml
mandriva.com/security/advisories?name=MDKSA-2005:040
marc.info?l=bugtraq&m=110806034116082&w=2
novell.com/linux/security/advisories/2005_27_postgresql.html
Show 37 moreShow less
exchange.xforce.ibmcloud.com/vulnerabilities/19375
redhat.com/support/errata/RHSA-2005-138.html
exchange.xforce.ibmcloud.com/vulnerabilities/19376
redhat.com/support/errata/RHSA-2005-150.html
exchange.xforce.ibmcloud.com/vulnerabilities/19378
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9345
securityfocus.com/bid/12417
debian.org/security/2005/dsa-683
novell.com/linux/security/advisories/2005_36_sudo.html
nvd.nist.gov/vuln/detail/CVE-2005-0247
github.com/advisories/GHSA-ggh8-6p3g-2rw7
access.redhat.com/errata/RHSA-2005:138
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=147380
security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_138.json
access.redhat.com/security/cve/CVE-2005-0227
bugzilla.redhat.com/show_bug.cgi?id=1617499
cve.org/CVERecord?id=CVE-2005-0227
nvd.nist.gov/vuln/detail/CVE-2005-0227
access.redhat.com/security/cve/CVE-2005-0244
bugzilla.redhat.com/show_bug.cgi?id=1617505
cve.org/CVERecord?id=CVE-2005-0244
nvd.nist.gov/vuln/detail/CVE-2005-0244
access.redhat.com/security/cve/CVE-2005-0245
bugzilla.redhat.com/show_bug.cgi?id=1617506
cve.org/CVERecord?id=CVE-2005-0245
nvd.nist.gov/vuln/detail/CVE-2005-0245
access.redhat.com/security/cve/CVE-2005-0246
bugzilla.redhat.com/show_bug.cgi?id=1617507
cve.org/CVERecord?id=CVE-2005-0246
nvd.nist.gov/vuln/detail/CVE-2005-0246
access.redhat.com/security/cve/CVE-2005-0247
bugzilla.redhat.com/show_bug.cgi?id=1617508
cve.org/CVERecord?id=CVE-2005-0247
access.redhat.com/errata/RHSA-2005:141
bugzilla.redhat.com/show_bug.cgi?id=147442
security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_141.json