Incorrect Authorization Affecting postgresql Open this link in a new tab package, versions [,10.21) [11.0, 11.6) [12.0, 12.11) [13.0, 13.7) [14.0, 14.7)

  • Attack Complexity


  • Confidentiality


  • Integrity


  • Availability


Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • snyk-id


  • published

    15 May 2022

  • disclosed

    12 May 2022

  • credit

    Alexander Lakhin

How to fix?

Upgrade postgresql to version 10.21, 11.6, 12.11, 13.7, 14.7 or higher.


Affected versions of this package are vulnerable to Incorrect Authorization due to incomplete efforts to operate safely when a privileged user is maintaining another user's objects. The Autovacuum, REINDEX, CREATE INDEX, REFRESH MATERIALIZED VIEW, CLUSTER, and pg_amcheck commands activated relevant protections too late or not at all during the process. This flaw allows an attacker with permission to create non-temporary objects in at least one schema to execute arbitrary SQL functions under a superuser identity.