CVE-2023-25149
TimescaleDB Privilege Escalation Vulnerability
Description
TimescaleDB, an open-source time-series SQL database, has a privilege escalation vulnerability in versions 2.8.0 through 2.9.2. During installation, TimescaleDB creates a telemetry job that is runs as the installation user. The queries run as part of the telemetry data collection were not run with a locked down `search_path`, allowing malicious users to create functions that would be executed by the telemetry job, leading to privilege escalation. In order to be able to take advantage of this vulnerability, a user would need to be able to create objects in a database and then get a superuser to install TimescaleDB into their database. When TimescaleDB is installed as trusted extension, non-superusers can install the extension without help from a superuser. Version 2.9.3 fixes this issue. As a mitigation, the `search_path` of the user running the telemetry job can be locked down to not include schemas writable by other users. The vulnerability is not exploitable on instances in Timescale Cloud and Managed Service for TimescaleDB due to additional security provisions in place on those platforms.
INFO
Published Date :
Feb. 14, 2023, 2:15 p.m.
Last Modified :
Nov. 21, 2024, 7:49 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-25149
.
URL | Resource |
---|---|
https://github.com/timescale/timescaledb/pull/5259 | Patch |
https://github.com/timescale/timescaledb/releases/tag/2.9.3 | Release Notes |
https://github.com/timescale/timescaledb/security/advisories/GHSA-44jh-j22r-33wq | Mitigation Third Party Advisory |
https://github.com/timescale/timescaledb/pull/5259 | Patch |
https://github.com/timescale/timescaledb/releases/tag/2.9.3 | Release Notes |
https://github.com/timescale/timescaledb/security/advisories/GHSA-44jh-j22r-33wq | Mitigation Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-25149
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-25149
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/timescale/timescaledb/pull/5259 Added Reference https://github.com/timescale/timescaledb/releases/tag/2.9.3 Added Reference https://github.com/timescale/timescaledb/security/advisories/GHSA-44jh-j22r-33wq -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Changed Description TimescaleDB, an open-source time-series SQL database, has a privilege escalation vulnerability in versions 2.8.0 through 2.9.2. During installation, TimescaleDB creates a telemetry job that is runs as the installation user. The queries run as part of the telemetry data collection were not run with a locked down `search_path`, allowing malicious users to create functions that would be executed by the telemetry job, leading to privilege escalation. In order to be able to take advantage of this vulnerability, a user would need to be able to create objects in a database and then get a superuser to install TimescaleDB into their database. When TimescaleDB is installed as trusted extension, non-superusers can install the extension without help from a superuser. Version 2.9.3 fixes this issue. As a mitigation, the `search_path` of the user running the telemetry job can be locked down to not include schemas writable by other users. The vulnerability is not exploitable on instances in Timescale Cloud and Managed Service for TimescaleDB due to additional security provisions in place on those platforms. TimescaleDB, an open-source time-series SQL database, has a privilege escalation vulnerability in versions 2.8.0 through 2.9.2. During installation, TimescaleDB creates a telemetry job that is runs as the installation user. The queries run as part of the telemetry data collection were not run with a locked down `search_path`, allowing malicious users to create functions that would be executed by the telemetry job, leading to privilege escalation. In order to be able to take advantage of this vulnerability, a user would need to be able to create objects in a database and then get a superuser to install TimescaleDB into their database. When TimescaleDB is installed as trusted extension, non-superusers can install the extension without help from a superuser. Version 2.9.3 fixes this issue. As a mitigation, the `search_path` of the user running the telemetry job can be locked down to not include schemas writable by other users. The vulnerability is not exploitable on instances in Timescale Cloud and Managed Service for TimescaleDB due to additional security provisions in place on those platforms. -
Initial Analysis by [email protected]
Feb. 22, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/timescale/timescaledb/pull/5259 No Types Assigned https://github.com/timescale/timescaledb/pull/5259 Patch Changed Reference Type https://github.com/timescale/timescaledb/releases/tag/2.9.3 No Types Assigned https://github.com/timescale/timescaledb/releases/tag/2.9.3 Release Notes Changed Reference Type https://github.com/timescale/timescaledb/security/advisories/GHSA-44jh-j22r-33wq No Types Assigned https://github.com/timescale/timescaledb/security/advisories/GHSA-44jh-j22r-33wq Mitigation, Third Party Advisory Added CWE NIST CWE-269 Added CPE Configuration OR *cpe:2.3:a:timescale:timescaledb:*:*:*:*:*:*:*:* versions from (including) 2.8.0 up to (including) 2.9.2
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-25149
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-25149
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.09 }} -0.23%
score
0.26525
percentile