CVE-2005-0245 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 b...
HighCVSS 7.5
EPSS 14.5%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql | >= 7.3, < 7.3.10 | 7.3.10 |
| postgresql | >= 7.4, < 7.4.7 | 7.4.7 |
| postgresql | = 8.0 | No fix listed |
References
- [pgsql-committers] 20050121 pgsql: Prevent overrunning a heap-allocated buffer is more than 1024 mailing-list vendor-advisory
- [pgsql-committers] 20050207 pgsql: Prevent 4 more buffer overruns in the PL/PgSQL parser. mailing-list vendor-advisory
- [pgsql-patches] 20050120 Re: WIP: pl/pgsql cleanup exploit mailing-list vendor-advisory
- 20050210 [USN-79-1] PostgreSQL vulnerabilities issue-tracking mailing-list third-party-advisory
- 12948 exploit patch third-party-advisory vendor-advisory
- DSA-683 exploit vendor-advisory
- MDKSA-2005:040 broken-link vendor-advisory
- SUSE-SA:2005:036 broken-link vendor-advisory
- RHSA-2005:138 patch vendor-advisory
- RHSA-2005:150 patch vendor-advisory
- 12417 third-party-advisory vdb-entry
- postgresql-cursor-bo(19188) third-party-advisory vdb-entry
- oval:org.mitre.oval:def:10175 signature third-party-advisory vdb-entry