{"id":"CVE-2023-32305","published":"2023-05-12T18:46:55Z","modified":"2025-02-13T16:50:30Z","title":"aiven-extras PostgreSQL Privilege Escalation Through Overloaded Search Path","vendor":"aiven","product":"aiven-extras","tier":"tail","description":{"text":"aiven-extras is a PostgreSQL extension. Versions prior to 1.1.9 contain a privilege escalation vulnerability, allowing elevation to superuser inside PostgreSQL databases that use the aiven-extras package. The vulnerability leverages missing schema qualifiers on privileged functions called by the aiven-extras extension. A low privileged user can create objects that collide with existing function names, which will then be executed instead. Exploiting this vulnerability could allow a low privileged user to acquire `superuser` privileges, which would allow full, unrestricted access to all data and database functions. And could lead to arbitrary code execution or data access on the underlying host as the `postgres` user. The issue has been patched as of version 1.1.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00727,"percentile":0.5507,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/aiven/aiven-extras/security/advisories/GHSA-7r4w-fw4h-67gp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/aiven/aiven-extras/commit/8682ae01bec0791708bf25791786d776e2fb0250","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20230616-0006/","tags":[]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":11.01},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"aiven","affectedVersions":[{"vendor":"aiven","product":"aiven-extras","versions":["< 1.1.9"]}],"euvd":{"id":"EUVD-2023-36557","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-aiven-extras-cve-2023-32305","children":[{"from":"CVE-2023-32305","to":"CVE-2025-31480","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["sql/aiven_extras.sql"],"commits":["https://github.com/aiven/aiven-extras/commit/8682ae01bec0791708bf25791786d776e2fb0250","https://github.com/aiven/aiven-extras/commit/77b5f19a0c1d196bc741ff5c774f85fe7ca3063b"],"basis":"rarely changed file"}]}]}}