CVE-2005-0247
MEDIUM 6.5CVSS 2.0Multiple 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.
- Published
- 2 May 2005
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-119
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.2:*:*:*:*:*:*:* |
= 7.2 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.2.1:*:*:*:*:*:*:* |
= 7.2.1 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.2.2:*:*:*:*:*:*:* |
= 7.2.2 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.2.3:*:*:*:*:*:*:* |
= 7.2.3 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.2.4:*:*:*:*:*:*:* |
= 7.2.4 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.2.5:*:*:*:*:*:*:* |
= 7.2.5 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.2.6:*:*:*:*:*:*:* |
= 7.2.6 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.2.7:*:*:*:*:*:*:* |
= 7.2.7 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3:*:*:*:*:*:*:* |
= 7.3 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.1:*:*:*:*:*:*:* |
= 7.3.1 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.2:*:*:*:*:*:*:* |
= 7.3.2 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.3:*:*:*:*:*:*:* |
= 7.3.3 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.4:*:*:*:*:*:*:* |
= 7.3.4 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.5:*:*:*:*:*:*:* |
= 7.3.5 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.6:*:*:*:*:*:*:* |
= 7.3.6 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.7:*:*:*:*:*:*:* |
= 7.3.7 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.8:*:*:*:*:*:*:* |
= 7.3.8 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.3.9:*:*:*:*:*:*:* |
= 7.3.9 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.4:*:*:*:*:*:*:* |
= 7.4 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.4.1:*:*:*:*:*:*:* |
= 7.4.1 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.4.2:*:*:*:*:*:*:* |
= 7.4.2 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.4.3:*:*:*:*:*:*:* |
= 7.4.3 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.4.4:*:*:*:*:*:*:* |
= 7.4.4 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.4.5:*:*:*:*:*:*:* |
= 7.4.5 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.4.6:*:*:*:*:*:*:* |
= 7.4.6 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:7.4.7:*:*:*:*:*:*:* |
= 7.4.7 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:8.0.0:*:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:8.0.1:*:*:*:*:*:*:* |
= 8.0.1 |
References
- http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php · Patch
- http://marc.info/?l=bugtraq&m=110806034116082&w=2
- http://www.debian.org/security/2005/dsa-683
- http://www.gentoo.org/security/en/glsa/glsa-200502-19.xml · Patch, Vendor Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:040
- http://www.novell.com/linux/security/advisories/2005_27_postgresql.html · Patch, Vendor Advisory
- http://www.novell.com/linux/security/advisories/2005_36_sudo.html
- http://www.redhat.com/support/errata/RHSA-2005-138.html · Patch, Vendor Advisory
- http://www.redhat.com/support/errata/RHSA-2005-150.html · Patch, Vendor Advisory
- http://www.securityfocus.com/bid/12417
- https://exchange.xforce.ibmcloud.com/vulnerabilities/19375
- https://exchange.xforce.ibmcloud.com/vulnerabilities/19376
- https://exchange.xforce.ibmcloud.com/vulnerabilities/19377
- https://exchange.xforce.ibmcloud.com/vulnerabilities/19378
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9345
History
- 25 Nov 2026 20:12 UTC · NVD: first stored (published 2 May 2005)