Buffer overflow in gram.y for PostgreSQL 8.0.0 and earlier may allow attackers to execute…
Priority MEDIUM 48Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
Summary
Buffer overflow in gram.y for PostgreSQL 8.0.0 and earlier may allow attackers to execute arbitrary code via a large number of arguments to a refcursor function (gram.y), which leads to a heap-based buffer overflow, a different vulnerability than CVE-2005-0247.
Why it matters now
EPSS 0.14473 96th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed Red Hat: 3 advisories
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 7.3 to before 7.3.10; 7.4 to before 7.4.7 | Vulnerable | PostgreSQL |
| cpe:2.3:a:postgresql:postgresql:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | PostgreSQL |
- cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions 7.3 to before 7.3.10; 7.4 to before 7.4.7 Vulnerable ·PostgreSQL
- cpe:2.3:a:postgresql:postgresql:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·PostgreSQL
Remediation
Red Hat 3 advisories
- RHSA-2005:150 Released 2005-02-16 · Red Hat rating Importantpostgresql security update
- Red Hat Enterprise Linux AS (Advanced Server) version 2.1
- Red Hat Enterprise Linux ES version 2.1
- Red Hat Enterprise Linux WS version 2.1
- Red Hat Linux Advanced Workstation 2.1
- RHSA-2005:138 Released 2005-02-15 · Red Hat rating Importantpostgresql security update
- Red Hat Enterprise Linux AS version 4 postgresql-7.4.7-2.RHEL4.1, postgresql-7.4.7-2.RHEL4.1.i386, postgresql-7.4.7-2.RHEL4.1.ia64 +41
- Red Hat Enterprise Linux Desktop version 4 postgresql-7.4.7-2.RHEL4.1, postgresql-7.4.7-2.RHEL4.1.i386, postgresql-contrib-7.4.7-2.RHEL4.1 +19
- Red Hat Enterprise Linux ES version 4 postgresql-7.4.7-2.RHEL4.1, postgresql-7.4.7-2.RHEL4.1.i386, postgresql-7.4.7-2.RHEL4.1.ia64 +30
- Red Hat Enterprise Linux WS version 4 postgresql-7.4.7-2.RHEL4.1, postgresql-7.4.7-2.RHEL4.1.i386, postgresql-7.4.7-2.RHEL4.1.ia64 +30
- RHSA-2005:141 Released 2005-02-14 · Red Hat rating Importantrh-postgresql security update
- Red Hat Desktop version 3 rh-postgresql-7.3.9-2, rh-postgresql-7.3.9-2.i386, rh-postgresql-contrib-7.3.9-2 +19
- Red Hat Enterprise Linux AS version 3 rh-postgresql-7.3.9-2, rh-postgresql-7.3.9-2.i386, rh-postgresql-7.3.9-2.ia64 +41
- Red Hat Enterprise Linux ES version 3 rh-postgresql-7.3.9-2, rh-postgresql-7.3.9-2.i386, rh-postgresql-7.3.9-2.ia64 +30
- Red Hat Enterprise Linux WS version 3 rh-postgresql-7.3.9-2, rh-postgresql-7.3.9-2.i386, rh-postgresql-7.3.9-2.ia64 +30
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Desktop version 3 | Fixed | RHSA-2005:141 |
| Red Hat Enterprise Linux AS (Advanced Server) version 2.1 | Fixed | RHSA-2005:150 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2005:141 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2005:138 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2005:138 |
| Red Hat Enterprise Linux ES version 2.1 | Fixed | RHSA-2005:150 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2005:141 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2005:138 |
| Red Hat Enterprise Linux WS version 2.1 | Fixed | RHSA-2005:150 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2005:141 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2005:138 |
| Red Hat Linux Advanced Workstation 2.1 | Fixed | RHSA-2005:150 |
Timeline
- 2026-10-02 Threatist record created from CVE-2005-0245
- 2026-10-03 Alias added: GHSA-8r34-wff9-3x69
References
Patch 2
Advisory 6
More Postgresql vulnerabilities
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2020-15711 SQL injection in postgresql CVSS 3.1HIGH 8.8
- TI-2013-01675 Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9… CVSS 2.0MEDIUM 6.5
- TI-2007-03176 The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE… CVSS 2.0HIGH 9.0
- TI-2022-01423 SQL injection in postgresql CVSS 3.1HIGH 8.8
Sources
- CVE-2005-0245 · CVE Program
- CVE-2005-0245 · NVD
- FIRST EPSS
- GHSA-8r34-wff9-3x69 · GitHub Advisory Database · CC BY 4.0
- CVE-2005-0245 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences