CVE-2005-0247
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a login. Limited direct impact.
- Exploit odds
- 3.5% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.5% in the next 30 days (EPSS).
- Severity: 6.5 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.5% · EPSS, next 30 days
- Weakness
- CWE-119 · Buffer errors
- Record status
- Modified
Affected
- PostgreSQL 7.2
- PostgreSQL 7.2.1
- PostgreSQL 7.2.2
- PostgreSQL 7.2.3
- PostgreSQL 7.2.4
- PostgreSQL 7.2.5
- PostgreSQL 7.2.6
- PostgreSQL 7.2.7
Attack profile CVSS 2.0 · 6.5
- Attack vector
- Network
- Complexity
- Low
- Authentication
- Single
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
Raw vector
AV:N/AC:L/Au:S/C:P/I:P/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2005-0247.md and follow it. Check whether this project is affected by CVE-2005-0247. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php
- http://www.gentoo.org/security/en/glsa/glsa-200502-19.xml
- http://www.novell.com/linux/security/advisories/2005_27_postgresql.html
- http://www.redhat.com/support/errata/RHSA-2005-138.html
- http://www.redhat.com/support/errata/RHSA-2005-150.html
- http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php
- http://www.gentoo.org/security/en/glsa/glsa-200502-19.xml
- http://www.novell.com/linux/security/advisories/2005_27_postgresql.html
- http://www.redhat.com/support/errata/RHSA-2005-138.html
- http://www.redhat.com/support/errata/RHSA-2005-150.html
References
- http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php
- 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
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:040
- http://www.novell.com/linux/security/advisories/2005_27_postgresql.html
- http://www.novell.com/linux/security/advisories/2005_36_sudo.html
- http://www.redhat.com/support/errata/RHSA-2005-138.html
- http://www.redhat.com/support/errata/RHSA-2005-150.html
- 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
- http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php
- 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
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:040
- http://www.novell.com/linux/security/advisories/2005_27_postgresql.html
- http://www.novell.com/linux/security/advisories/2005_36_sudo.html
- http://www.redhat.com/support/errata/RHSA-2005-138.html
- http://www.redhat.com/support/errata/RHSA-2005-150.html
- http://www.securityfocus.com/bid/12417