]> granicus.if.org Git - postgresql/commit
Prevent execution of enum_recv() from SQL.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Feb 2013 21:25:25 +0000 (16:25 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Feb 2013 21:25:25 +0000 (16:25 -0500)
commit308ba8702caad0a9ba22875c43c1dfa4577ce857
tree73bc974abb502213fa0f36cde59c8d9faa8ff36a
parent90f77d759b5b394ec477f634ba6ece03dbd0574e
Prevent execution of enum_recv() from SQL.

This function was misdeclared to take cstring when it should take internal.
This at least allows crashing the server, and in principle an attacker
might be able to use the function to examine the contents of server memory.

The correct fix is to adjust the system catalog contents (and fix the
regression tests that should have caught this but failed to).  However,
asking users to correct the catalog contents in existing installations
is a pain, so as a band-aid fix for the back branches, install a check
in enum_recv() to make it throw error if called with a cstring argument.
We will later revert this in HEAD in favor of correcting the catalogs.

Our thanks to Sumit Soni (via Secunia SVCRP) for reporting this issue.

Security: CVE-2013-0255
doc/src/sgml/release-8.3.sgml
doc/src/sgml/release-8.4.sgml
src/backend/utils/adt/enum.c