{"id":"CVE-2007-0556","aliases":["EUVD-2007-0554","GHSA-c63f-g8cg-38ww","RHSA-2007:0067","RHSA-2007:0068"],"status":"published","title":"The query planner in PostgreSQL before 8.0.11, 8.1 before 8.1.7, and 8.2 before 8.2.2 does not...","description":"The query planner in PostgreSQL before 8.0.11, 8.1 before 8.1.7, and 8.2 before 8.2.2 does not verify that a table is compatible with a \"previously made query plan,\" which allows remote authenticated users to cause a denial of service (server crash) and possibly access database content via an \"ALTER COLUMN TYPE\" SQL statement, which can be leveraged to read arbitrary memory from the server.","severity":{"version":"2.0","score":6.6,"vector":"AV:N/AC:H/Au:S/C:C/I:N/A:C","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.0311,"percentile":0.8787,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2007-02-06T01:00:00Z","modified":"2026-06-26T12:17:18Z","affected":[{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-contrib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-pl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-tcl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"postgresql-test","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.7-3.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"postgresql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"postgresql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"postgresql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"postgresql-pl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"postgresql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"postgresql-test","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"postgresql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"postgresql-contrib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"postgresql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"postgresql-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"postgresql-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"postgresql-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"postgresql-tcl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-contrib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-pl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-tcl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"postgresql-test","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.1.8-1.el5"}]}],"bundled":5}],"products":[{"vendor":"postgresql","product":"postgresql"}],"references":[{"url":"https://issues.rpath.com/browse/RPL-1025","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://secunia.com/advisories/24050","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.securityfocus.com/bid/22387","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://secunia.com/advisories/24513","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/24315","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11353","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/32191","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0068.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/459448/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/0774","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/459280/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/0478","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://secunia.com/advisories/24151","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.ubuntu.com/usn/usn-417-2","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://secunia.com/advisories/24577","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/24033","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://securitytracker.com/id?1017597","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://usn.ubuntu.com/417-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"https://issues.rpath.com/browse/RPL-830","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.novell.com/linux/security/advisories/2007_10_sr.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://www.postgresql.org/support/security","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://fedoranews.org/cms/node/2554","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://support.avaya.com/elmodocs2/security/ASA-2007-117.htm","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.trustix.org/errata/2007/0007","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:037","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0067.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://secunia.com/advisories/24057","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/25220","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/24042","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/24028","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://osvdb.org/33302","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://lists.rpath.com/pipermail/security-announce/2007-February/000141.html","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://sunsolve.sun.com/search/document.do?assetkey=1-26-102825-1","tags":["vendor-advisory","x_refsource_SUNALERT","x_transferred"]},{"url":"http://security.gentoo.org/glsa/glsa-200703-15.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-0556","tags":["advisory"]},{"url":"https://usn.ubuntu.com/417-1"},{"url":"https://github.com/advisories/GHSA-c63f-g8cg-38ww"},{"url":"https://access.redhat.com/errata/RHSA-2007:0067","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=225543","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=227299","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=227542","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2007/rhsa-2007_0067.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-5540","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1618217","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-5540","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-5540","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-5541","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1618218","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-5541","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-5541","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-5542","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=212360","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-5542","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-5542","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-0555","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1618367","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-0555","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-0555","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-0556","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1618270","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-0556","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2007:0068","tags":["advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=216411","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=225496","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=227688","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2007/rhsa-2007_0068.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2007-0556","description":"The query planner in PostgreSQL before 8.0.11, 8.1 before 8.1.7, and 8.2 before 8.2.2 does not verify that a table is compatible with a \"previously made query plan,\" which allows remote authenticated users to cause a denial of service (server crash) and possibly access database content via an \"ALTER COLUMN TYPE\" SQL statement, which can be leveraged to read arbitrary memory from the server.","status":"published","published":"2007-02-06T01:00:00Z","modified":"2024-08-07T12:19:30.527Z","updated_at":"2026-11-02T13:34:15.046008Z"}],"euvd":[{"id":"EUVD-2007-0554","description":"The query planner in PostgreSQL before 8.0.11, 8.1 before 8.1.7, and 8.2 before 8.2.2 does not verify that a table is compatible with a \"previously made query plan,\" which allows remote authenticated users to cause a denial of service (server crash) and possibly access database content via an \"ALTER COLUMN TYPE\" SQL statement, which can be leveraged to read arbitrary memory from the server.","status":"published","published":"2007-02-06T01:00:00Z","modified":"2024-08-07T12:19:30Z","updated_at":"2026-11-03T01:38:30.186176Z"}],"ghsa":[{"id":"GHSA-c63f-g8cg-38ww","title":"The query planner in PostgreSQL before 8.0.11, 8.1 before 8.1.7, and 8.2 before 8.2.2 does not...","description":"The query planner in PostgreSQL before 8.0.11, 8.1 before 8.1.7, and 8.2 before 8.2.2 does not verify that a table is compatible with a \"previously made query plan,\" which allows remote authenticated users to cause a denial of service (server crash) and possibly access database content via an \"ALTER COLUMN TYPE\" SQL statement, which can be leveraged to read arbitrary memory from the server.","status":"published","published":"2022-05-01T17:45:22Z","modified":"2025-04-09T03:37:07Z","updated_at":"2026-11-02T15:00:53.302842Z"}],"nvd":[{"id":"CVE-2007-0556","description":"The query planner in PostgreSQL before 8.0.11, 8.1 before 8.1.7, and 8.2 before 8.2.2 does not verify that a table is compatible with a \"previously made query plan,\" which allows remote authenticated users to cause a denial of service (server crash) and possibly access database content via an \"ALTER COLUMN TYPE\" SQL statement, which can be leveraged to read arbitrary memory from the server.","status":"published","published":"2007-02-06T01:28:00Z","modified":"2026-06-16T22:35:48.523Z","cvss":[{"version":"2.0","score":6.6,"vector":"AV:N/AC:H/Au:S/C:C/I:N/A:C","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:13.10493Z"}],"osv":[{"id":"RHSA-2007:0067","title":"Red Hat Security Advisory: postgresql security update","status":"published","published":"2024-09-15T16:33:09Z","modified":"2025-11-22T10:10:26Z","updated_at":"2026-11-02T15:52:59.70892Z"},{"id":"RHSA-2007:0068","title":"Red Hat Security Advisory: postgresql security update","status":"published","published":"2024-09-15T16:33:14Z","modified":"2026-06-26T12:17:18.847864049Z","updated_at":"2026-11-02T15:52:59.70892Z"}]}}
