Vulnerability Description
Timescale TimescaleDB 1.x and 2.x before 2.5.2 may allow privilege escalation during extension installation. The installation process uses commands such as CREATE x IF NOT EXIST that allow an unprivileged user to precreate objects. These objects will be used by the installer (which executes as Superuser), leading to privilege escalation. In order to be able to take advantage of this, an unprivileged user would need to be able to create objects in a database and then get a Superuser to install TimescaleDB into their database. (In the fixed versions, the installation aborts when it finds that an object already exists.)
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Timescale | Timescaledb | >= 1.0.0, < 2.5.2 |
Related Weaknesses (CWE)
References
- https://docs.timescale.com/timescaledb/latest/overview/release-notes/Release NotesVendor Advisory
- https://github.com/timescale/timescaledb/commit/6275c2985927cfd4900b85cac5120227
- https://github.com/timescale/timescaledb/commit/c8b8516e466c2bb7d2ae6a4b0b2e8e60
- https://github.com/timescale/timescaledb/security/advisories/GHSA-fh8v-663w-79w9Third Party Advisory
- https://docs.timescale.com/timescaledb/latest/overview/release-notes/Release NotesVendor Advisory
- https://github.com/timescale/timescaledb/commit/6275c2985927cfd4900b85cac5120227
- https://github.com/timescale/timescaledb/commit/c8b8516e466c2bb7d2ae6a4b0b2e8e60
- https://github.com/timescale/timescaledb/security/advisories/GHSA-fh8v-663w-79w9Third Party Advisory
FAQ
What is CVE-2022-24128?
CVE-2022-24128 is a vulnerability with a CVSS score of 8.0 (HIGH). Timescale TimescaleDB 1.x and 2.x before 2.5.2 may allow privilege escalation during extension installation. The installation process uses commands such as CREATE x IF NOT EXIST that allow an unprivil...
How severe is CVE-2022-24128?
CVE-2022-24128 has been rated HIGH with a CVSS base score of 8.0/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-24128?
Check the references section above for vendor advisories and patch information. Affected products include: Timescale Timescaledb.