{"api_version":"1","generated_at":"2026-07-23T06:08:34+00:00","cve":"CVE-2005-0245","urls":{"html":"https://cve.report/CVE-2005-0245","api":"https://cve.report/api/cve/CVE-2005-0245.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2005-0245","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2005-0245"},"summary":{"title":"CVE-2005-0245","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.","state":"PUBLISHED","assigner":"redhat","published_at":"2005-02-01 05:00:00","updated_at":"2025-04-03 01:03:51"},"problem_types":["NVD-CWE-Other","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php","name":"http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"pgsql: Prevent 4 more buffer overruns in the PL/PgSQL parser.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/12948","name":"http://secunia.com/advisories/12948","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Patch","Vendor Advisory"],"title":"Secunia - Advisories - PostgreSQL Multiple Vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/12417","name":"http://www.securityfocus.com/bid/12417","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"PostgreSQL Multiple Remote Vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/19188","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/19188","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.redhat.com/support/errata/RHSA-2005-150.html","name":"http://www.redhat.com/support/errata/RHSA-2005-150.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"rhn.redhat.com | Red Hat Support","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10175","name":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10175","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Repository  /  Oval Repository","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://archives.postgresql.org/pgsql-committers/2005-01/msg00298.php","name":"http://archives.postgresql.org/pgsql-committers/2005-01/msg00298.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"pgsql: Prevent overrunning a heap-allocated buffer is more than 1024","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.novell.com/linux/security/advisories/2005_36_sudo.html","name":"http://www.novell.com/linux/security/advisories/2005_36_sudo.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"Security Announcement","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://marc.info/?l=bugtraq&m=110806034116082&w=2","name":"http://marc.info/?l=bugtraq&m=110806034116082&w=2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Third Party Advisory"],"title":"'[USN-79-1] PostgreSQL vulnerabilities' - MARC","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://archives.postgresql.org/pgsql-patches/2005-01/msg00216.php","name":"http://archives.postgresql.org/pgsql-patches/2005-01/msg00216.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Vendor Advisory"],"title":"Re: WIP: pl/pgsql cleanup","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.redhat.com/support/errata/RHSA-2005-138.html","name":"http://www.redhat.com/support/errata/RHSA-2005-138.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"rhn.redhat.com | Red Hat Support","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:040","name":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:040","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"Advisories - Mandriva","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.debian.org/security/2005/dsa-683","name":"http://www.debian.org/security/2005/dsa-683","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Vendor Advisory"],"title":"Debian -- Security Information -- DSA-683-1 postgresql","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2005-0245","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-0245","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2005","cve_id":"245","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T21:05:25.596Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"postgresql-cursor-bo(19188)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/19188"},{"name":"[pgsql-committers] 20050207 pgsql: Prevent 4 more buffer overruns in the PL/PgSQL parser.","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php"},{"name":"MDKSA-2005:040","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"],"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:040"},{"name":"20050210 [USN-79-1] PostgreSQL vulnerabilities","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://marc.info/?l=bugtraq&m=110806034116082&w=2"},{"name":"oval:org.mitre.oval:def:10175","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10175"},{"name":"[pgsql-patches] 20050120 Re: WIP: pl/pgsql cleanup","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://archives.postgresql.org/pgsql-patches/2005-01/msg00216.php"},{"name":"RHSA-2005:138","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://www.redhat.com/support/errata/RHSA-2005-138.html"},{"name":"12948","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/12948"},{"name":"RHSA-2005:150","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://www.redhat.com/support/errata/RHSA-2005-150.html"},{"name":"[pgsql-committers] 20050121 pgsql: Prevent overrunning a heap-allocated buffer is more than 1024","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://archives.postgresql.org/pgsql-committers/2005-01/msg00298.php"},{"name":"12417","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/12417"},{"name":"DSA-683","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"],"url":"http://www.debian.org/security/2005/dsa-683"},{"name":"SUSE-SA:2005:036","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"],"url":"http://www.novell.com/linux/security/advisories/2005_36_sudo.html"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2005-01-20T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-10-10T00:57:01.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","shortName":"redhat"},"references":[{"name":"postgresql-cursor-bo(19188)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/19188"},{"name":"[pgsql-committers] 20050207 pgsql: Prevent 4 more buffer overruns in the PL/PgSQL parser.","tags":["mailing-list","x_refsource_MLIST"],"url":"http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php"},{"name":"MDKSA-2005:040","tags":["vendor-advisory","x_refsource_MANDRAKE"],"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:040"},{"name":"20050210 [USN-79-1] PostgreSQL vulnerabilities","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://marc.info/?l=bugtraq&m=110806034116082&w=2"},{"name":"oval:org.mitre.oval:def:10175","tags":["vdb-entry","signature","x_refsource_OVAL"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10175"},{"name":"[pgsql-patches] 20050120 Re: WIP: pl/pgsql cleanup","tags":["mailing-list","x_refsource_MLIST"],"url":"http://archives.postgresql.org/pgsql-patches/2005-01/msg00216.php"},{"name":"RHSA-2005:138","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://www.redhat.com/support/errata/RHSA-2005-138.html"},{"name":"12948","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/12948"},{"name":"RHSA-2005:150","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://www.redhat.com/support/errata/RHSA-2005-150.html"},{"name":"[pgsql-committers] 20050121 pgsql: Prevent overrunning a heap-allocated buffer is more than 1024","tags":["mailing-list","x_refsource_MLIST"],"url":"http://archives.postgresql.org/pgsql-committers/2005-01/msg00298.php"},{"name":"12417","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/12417"},{"name":"DSA-683","tags":["vendor-advisory","x_refsource_DEBIAN"],"url":"http://www.debian.org/security/2005/dsa-683"},{"name":"SUSE-SA:2005:036","tags":["vendor-advisory","x_refsource_SUSE"],"url":"http://www.novell.com/linux/security/advisories/2005_36_sudo.html"}]}},"cveMetadata":{"assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","assignerShortName":"redhat","cveId":"CVE-2005-0245","datePublished":"2005-02-08T05:00:00.000Z","dateReserved":"2005-02-08T00:00:00.000Z","dateUpdated":"2024-08-07T21:05:25.596Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2005-02-01 05:00:00","lastModifiedDate":"2025-04-03 01:03:51","problem_types":["NVD-CWE-Other","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":true,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.10","matchCriteriaId":"96E69FC4-9166-4A1A-831D-7C686B902273"},{"vulnerable":true,"criteria":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"7.4","versionEndExcluding":"7.4.7","matchCriteriaId":"7B6180C2-75D0-4196-AE96-9DA773C346E5"},{"vulnerable":true,"criteria":"cpe:2.3:a:postgresql:postgresql:8.0:*:*:*:*:*:*:*","matchCriteriaId":"94222D76-82BE-4FFB-BE4B-5DBAF3080D4D"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2005","CveId":"245","Ordinal":"1","Title":"CVE-2005-0245","CVE":"CVE-2005-0245","Year":"2005"},"notes":[{"CveYear":"2005","CveId":"245","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2005-0245"},{"CveYear":"2005","CveId":"245","Ordinal":"2","NoteData":"2005-02-08","Type":"Other","Title":"Published"},{"CveYear":"2005","CveId":"245","Ordinal":"3","NoteData":"2017-10-09","Type":"Other","Title":"Modified"}]}}}