CVE-2005-0245 in Postgresql
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Postgresql | Postgresql | 8.0 ≥ 7.3, < 7.3.10 ≥ 7.4, < 7.4.7 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2005-0245 |
|---|---|
| BreachSpider ID | BS-2005-GLOBAL-158305-H |
| CVSS vector | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Published | 2005-02-01 |
| Last modified | 2026-04-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A buffer overflow vulnerability in the gram.y file of PostgreSQL 8.0.0 and earlier versions allows attackers to execute arbitrary code by providing a large number of arguments to a refcursor function, leading to a heap-based buffer overflow.
The vulnerability is triggered when a large number of arguments are passed to a refcursor function, causing a buffer overflow in the gram.y file. This can be exploited to execute arbitrary code with the privileges of the PostgreSQL server.
Questions
What is CVE-2005-0245?
A buffer overflow vulnerability in the gram.y file of PostgreSQL 8.0.0 and earlier versions allows attackers to execute arbitrary code by providing a large number of arguments to a refcursor function, leading to a heap-based buffer overflow.
What is the CVSS score for CVE-2005-0245?
CVE-2005-0245 has CVSS 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. EPSS: 14.5%.
Is CVE-2005-0245 actively exploited?
Public exploit available for CVE-2005-0245. Exploitation risk elevated.
How do I remediate CVE-2005-0245?
Priority: HIGH. Advisory: http://archives.postgresql.org/pgsql-committers/2005-01/msg00298.php PSIRT: [email protected]
What systems are affected by CVE-2005-0245?
CVE-2005-0245 affects Postgresql Postgresql.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Postgresql","product":"Postgresql","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-16.