Access Control Bypass Affecting timescale/timescaledb package, versions [2.8.0,2.9.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.22% (62nd percentile)

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 SNYK-UNMANAGED-TIMESCALETIMESCALEDB-3319678
  • published 14 Feb 2023
  • disclosed 14 Feb 2023
  • credit Unknown

How to fix?

Upgrade timescale/timescaledb to version 2.9.3 or higher.

Overview

Affected versions of this package are vulnerable to Access Control Bypass. During installation, TimescaleDB creates a telemetry job that 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.

NOTE: 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.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

8.8 high