Описание
TimescaleDB is a time-series database for high-performance real-time analytics packaged as a Postgres extension. From version 2.23.0 to 2.25.1, 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. This issue has been patched in version 2.25.2.
A flaw was found in TimescaleDB, a time-series database extension for PostgreSQL. A malicious user can exploit this vulnerability by creating functions in user-writable schemas that shadow built-in PostgreSQL functions. During an extension upgrade, PostgreSQL's search_path setting, which determines how database objects are located, can cause these malicious functions to be executed instead of the legitimate ones. This can lead to arbitrary code execution, allowing the attacker to run unauthorized commands on the system.
Отчет
This IMPORTANT vulnerability affects TimescaleDB versions 2.23.0 through 2.25.1. A database user with low privileges can achieve arbitrary code execution during extension upgrade by placing malicious functions in user-writable schemas. The scope is changed as code executes in the upgrade context with elevated privileges, resulting in full compromise of confidentiality, integrity, and availability.
Ссылки на источники
Дополнительная информация
Статус:
8.8 High
CVSS3
Связанные уязвимости
TimescaleDB is a time-series database for high-performance real-time analytics packaged as a Postgres extension. From version 2.23.0 to 2.25.1, 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. This issue has been patched in version 2.25.2.
8.8 High
CVSS3