Impact
Critical. A low-privileged user can gain superuser privileges.
Summary
PostgreSQL uses the search_path setting to locate unqualified database objects (tables, functions, operators). If the search_path includes user-writable schemas a malicious user can create functions in that schema that shadow builtin postgres functions and will be called instead of the postgres functions leading to arbitrary code execution during extension upgrade.
Fix
Upgrade to TimescaleDB 2.25.2.
Workarounds
Since the vulnerability is in the upgrade script, blocking extension upgrades will prevent exploitation.
Affected Platforms
The vulnerability is not exploitable on instances in Tiger Cloud and Managed Service for TimescaleDB due to additional security provisions in place on those platforms.
Impact
Critical. A low-privileged user can gain superuser privileges.
Summary
PostgreSQL uses the search_path setting to locate unqualified database objects (tables, functions, operators). If the search_path includes user-writable schemas a malicious user can create functions in that schema that shadow builtin postgres functions and will be called instead of the postgres functions leading to arbitrary code execution during extension upgrade.
Fix
Upgrade to TimescaleDB 2.25.2.
Workarounds
Since the vulnerability is in the upgrade script, blocking extension upgrades will prevent exploitation.
Affected Platforms
The vulnerability is not exploitable on instances in Tiger Cloud and Managed Service for TimescaleDB due to additional security provisions in place on those platforms.