Two vulnerabilities in how ANALYZE executes user defined functions that are part of expression indexes allows users to gain superuser privileges. A valid login that has permissions to create functions and tables is required to exploit this vulnearbility.

Version Information

Affected Version Fixed In
8.2 8.2.6
8.1 8.1.11
8.0 8.0.15
7.4 7.4.19
7.3 7.3.21

For more information about PostgreSQL versioning, please visit the versioning page.

Reporting Security Vulnerabilities

If you wish to report a new security vulnerability in PostgreSQL, please send an email to

For reporting non-security bugs, please see the Report a Bug page.