{"schemaVersion":3,"id":"CVE-2005-0247","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2005-02-08T05:00:00.000Z","modified":"2024-08-07T21:05:25.547Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03512,"percentile":0.89072,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.03512},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03512,"percentile":0.89072}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03512,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03512,"percentile":0.89072}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"postgresql","product":"postgresql","name":"postgresql","label":"postgresql","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.2","noFixRecorded":false,"fixedIn":null},{"text":"7.2.1","noFixRecorded":false,"fixedIn":null},{"text":"7.2.2","noFixRecorded":false,"fixedIn":null},{"text":"7.2.3","noFixRecorded":false,"fixedIn":null},{"text":"7.2.4","noFixRecorded":false,"fixedIn":null},{"text":"7.2.5","noFixRecorded":false,"fixedIn":null},{"text":"7.2.6","noFixRecorded":false,"fixedIn":null},{"text":"7.2.7","noFixRecorded":false,"fixedIn":null},{"text":"7.3","noFixRecorded":false,"fixedIn":null},{"text":"7.3.1","noFixRecorded":false,"fixedIn":null},{"text":"7.3.2","noFixRecorded":false,"fixedIn":null},{"text":"7.3.3","noFixRecorded":false,"fixedIn":null},{"text":"7.3.4","noFixRecorded":false,"fixedIn":null},{"text":"7.3.5","noFixRecorded":false,"fixedIn":null},{"text":"7.3.6","noFixRecorded":false,"fixedIn":null},{"text":"7.3.7","noFixRecorded":false,"fixedIn":null},{"text":"7.3.8","noFixRecorded":false,"fixedIn":null},{"text":"7.3.9","noFixRecorded":false,"fixedIn":null},{"text":"7.4","noFixRecorded":false,"fixedIn":null},{"text":"7.4.1","noFixRecorded":false,"fixedIn":null},{"text":"7.4.2","noFixRecorded":false,"fixedIn":null},{"text":"7.4.3","noFixRecorded":false,"fixedIn":null},{"text":"7.4.4","noFixRecorded":false,"fixedIn":null},{"text":"7.4.5","noFixRecorded":false,"fixedIn":null},{"text":"7.4.6","noFixRecorded":false,"fixedIn":null},{"text":"7.4.7","noFixRecorded":false,"fixedIn":null},{"text":"8.0.0","noFixRecorded":false,"fixedIn":null},{"text":"8.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"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","eol":{"isEol":true,"eolDate":"2007-02-04T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7.2","label":"7.2","eolFrom":"2007-02-04T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"7.2.8"},"product":{"name":"postgresql","label":"PostgreSQL","category":"database"}},"hubHref":"/vendor/postgresql/postgresql"}],"affectedCount":1,"eol":{"hasEol":true,"count":1},"references":[{"url":"http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php","label":"archives.postgresql.org/pgsql-committers/2005-02/msg00049.php","hostname":"archives.postgresql.org","tags":["Mailing List","X Refsource MLIST","Patch"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/19377","label":"exchange.xforce.ibmcloud.com/vulnerabilities/19377","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200502-19.xml","label":"www.gentoo.org/security/en/glsa/glsa-200502-19.xml","hostname":"www.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Patch"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:040","label":"www.mandriva.com/security/advisories?name=MDKSA-2005:040","hostname":"www.mandriva.com","tags":["Vendor Advisory","X Refsource MANDRAKE"]},{"url":"http://marc.info/?l=bugtraq&m=110806034116082&w=2","label":"marc.info?l=bugtraq&m=110806034116082&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ"]},{"url":"http://www.novell.com/linux/security/advisories/2005_27_postgresql.html","label":"www.novell.com/linux/security/advisories/2005_27_postgresql.html","hostname":"www.novell.com","tags":["Vendor Advisory","X Refsource SUSE","Patch"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/19375","label":"exchange.xforce.ibmcloud.com/vulnerabilities/19375","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-138.html","label":"www.redhat.com/support/errata/RHSA-2005-138.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Patch"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/19376","label":"exchange.xforce.ibmcloud.com/vulnerabilities/19376","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-150.html","label":"www.redhat.com/support/errata/RHSA-2005-150.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Patch"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/19378","label":"exchange.xforce.ibmcloud.com/vulnerabilities/19378","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9345","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9345","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"http://www.securityfocus.com/bid/12417","label":"www.securityfocus.com/bid/12417","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"http://www.debian.org/security/2005/dsa-683","label":"www.debian.org/security/2005/dsa-683","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN"]},{"url":"http://www.novell.com/linux/security/advisories/2005_36_sudo.html","label":"www.novell.com/linux/security/advisories/2005_36_sudo.html","hostname":"www.novell.com","tags":["Vendor Advisory","X Refsource SUSE"]}],"lineage":{"upstream":[],"downstream":["DSA-683-1","RHSA-2005:138","RHSA-2005:141"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2005-02-08T05:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-07T21:05:25.547Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T07:51:52.122Z","stale":false,"partial":false}}