{"api_version":"1","generated_at":"2026-04-09T23:57:00+00:00","cve":"CVE-2023-32305","urls":{"html":"https://cve.report/CVE-2023-32305","api":"https://cve.report/api/cve/CVE-2023-32305.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-32305","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-32305"},"summary":{"title":"CVE-2023-32305","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-05-12 19:15:00","updated_at":"2024-02-01 14:06:00"},"problem_types":["CWE-20"],"metrics":[],"references":[{"url":"https://github.com/aiven/aiven-extras/security/advisories/GHSA-7r4w-fw4h-67gp","name":"https://github.com/aiven/aiven-extras/security/advisories/GHSA-7r4w-fw4h-67gp","refsource":"MISC","tags":[],"title":"PostgreSQL Privilege Escalation Through Missing Schema Qualifiers · Advisory · aiven/aiven-extras · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/aiven/aiven-extras/commit/8682ae01bec0791708bf25791786d776e2fb0250","name":"https://github.com/aiven/aiven-extras/commit/8682ae01bec0791708bf25791786d776e2fb0250","refsource":"MISC","tags":[],"title":"Qualify function calls with pg_catalog schema · aiven/aiven-extras@8682ae0 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20230616-0006/","name":"https://security.netapp.com/advisory/ntap-20230616-0006/","refsource":"MISC","tags":[],"title":"CVE-2023-32305 PostgreSQL Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-32305","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32305","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"32305","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"aiven","cpe5":"aiven","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"postgresql","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"32305","vulnerable":"-1","versionEndIncluding":"10.22","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"32305","vulnerable":"-1","versionEndIncluding":"11.7","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"32305","vulnerable":"-1","versionEndIncluding":"12.12","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"32305","vulnerable":"-1","versionEndIncluding":"13.8","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"32305","vulnerable":"-1","versionEndIncluding":"14.5","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-32305","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20: Improper Input Validation","cweId":"CWE-20"}]},{"description":[{"lang":"eng","value":"CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')","cweId":"CWE-1321"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"aiven","product":{"product_data":[{"product_name":"aiven-extras","version":{"version_data":[{"version_affected":"=","version_value":"< 1.1.9"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/aiven/aiven-extras/security/advisories/GHSA-7r4w-fw4h-67gp","refsource":"MISC","name":"https://github.com/aiven/aiven-extras/security/advisories/GHSA-7r4w-fw4h-67gp"},{"url":"https://github.com/aiven/aiven-extras/commit/8682ae01bec0791708bf25791786d776e2fb0250","refsource":"MISC","name":"https://github.com/aiven/aiven-extras/commit/8682ae01bec0791708bf25791786d776e2fb0250"},{"url":"https://security.netapp.com/advisory/ntap-20230616-0006/","refsource":"MISC","name":"https://security.netapp.com/advisory/ntap-20230616-0006/"}]},"source":{"advisory":"GHSA-7r4w-fw4h-67gp","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-05-12 19:15:00","lastModifiedDate":"2024-02-01 14:06:00","problem_types":["CWE-20"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"AND","children":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:aiven:aiven:*:*:*:*:*:postgresql:*:*","versionEndExcluding":"1.1.9","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":false,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"10.0","versionEndIncluding":"10.22","cpe_name":[]},{"vulnerable":false,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"11.0","versionEndIncluding":"11.7","cpe_name":[]},{"vulnerable":false,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"12.0","versionEndIncluding":"12.12","cpe_name":[]},{"vulnerable":false,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"13.0","versionEndIncluding":"13.8","cpe_name":[]},{"vulnerable":false,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"14.0","versionEndIncluding":"14.5","cpe_name":[]}]}],"cpe_match":[]}]}},"legacy_mitre":{"record":null,"notes":[]}}}