Skip to content

TimescaleDB 1.x and 2.x through 2.5.1 has incorrect access control

High
horzsolt published GHSA-fh8v-663w-79w9 Mar 15, 2022

Package

TimescaleDB (TimescaleDB)

Affected versions

1.x,2.x through 2.5.1

Patched versions

2.5.2, 2.6.0

Description

Summary

TimescaleDB installation uses commands such as CREATE x IF NOT EXISTS which allows non-superusers to precreate objects. These objects will be used during installation which executes as superuser 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.

Fix:

Upgrade to TimescaleDB 2.5.2+ or 2.6.0+.

Acknowledgements

Timescale would like to thank Pedro Gallegos for reporting this vulnerability.

Severity

High

CVE ID

CVE-2022-24128

Weaknesses

No CWEs