# CVE-2005-0247

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2005-02-08 · Modified: 2024-08-07
- Record: https://cvemate.com/vulnerability/CVE-2005-0247 · JSON: https://cvemate.com/vulnerability/CVE-2005-0247/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v2.0, NVD) AV:N/AC:L/Au:S/C:P/I:P/A:P
- EPSS: 3.512%, percentile 89.565%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- postgresql postgresql: 7.2 \| 7.2.1 \| 7.2.2 \| 7.2.3 \| 7.2.4 \| 7.2.5 \| 7.2.6 \| 7.2.7 \| 7.3 \| 7.3.1 \| 7.3.2 \| 7.3.3 \| 7.3.4 \| 7.3.5 \| 7.3.6 \| 7.3.7 \| 7.3.8 \| 7.3.9 \| 7.4 \| 7.4.1 \| 7.4.2 \| 7.4.3 \| 7.4.4 \| 7.4.5 \| 7.4.6 \| 7.4.7 \| 8.0.0 \| 8.0.1

## References

- <http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/19377>
- <http://www.gentoo.org/security/en/glsa/glsa-200502-19.xml>
- <http://www.mandriva.com/security/advisories?name=MDKSA-2005:040>
- <http://marc.info/?l=bugtraq&m=110806034116082&w=2>
- <http://www.novell.com/linux/security/advisories/2005_27_postgresql.html>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/19375>
- <http://www.redhat.com/support/errata/RHSA-2005-138.html>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/19376>
- <http://www.redhat.com/support/errata/RHSA-2005-150.html>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/19378>
- <https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9345>
- <http://www.securityfocus.com/bid/12417>
- <http://www.debian.org/security/2005/dsa-683>
- <http://www.novell.com/linux/security/advisories/2005_36_sudo.html>

---

Data as of 2026-12-05T13:56:19.070Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
