#VU76041 Permissions, Privileges, and Access Controls in PostgreSQL


Published: 2023-05-11

Vulnerability identifier: #VU76041

Vulnerability risk: Medium

CVSSv3.1: 5.7 [CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-2454

CWE-ID: CWE-264

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PostgreSQL
Server applications / Database software

Vendor: PostgreSQL Global Development Group

Description

The vulnerability allows a remote user to execute arbitrary code on the system.

The vulnerability exists due to improperly imposed security restrictions. A remote database user with   CREATE privilege can bypass protective search_path changes via "CREATE SCHEMA ... schema_element" command and execute arbitrary code on the system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

PostgreSQL: 15.0 - 15.2, 14.0 - 14.7, 13.0 - 13.10, 12 - 12.14, 11.0 - 11.19, 10.0 - 10.23, 9.6.0 - 9.6.24, 9.5 - 9.5.25, 9.4 - 9.4.26, 9.3 - 9.3.25, 9.2 - 9.2.24, 9.1 - 9.1.24, 9.0 - 9.0.23


External links
http://www.postgresql.org/about/news/postgresql-153-148-1311-1215-and-1120-released-2637/


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability