{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:aiven:aiven:*:*:*:*:*:postgresql:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.1.9"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "36598ab226a258c8065a0aed44054089e6111241"
            },
            {
              "fixed": "8682ae01bec0791708bf25791786d776e2fb0250"
            }
          ],
          "repo": "https://github.com/aiven/aiven-extras",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-7r4w-fw4h-67gp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1321",
      "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32305.json"
  },
  "details": "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.",
  "id": "CVE-2023-32305",
  "modified": "2026-07-08T05:38:31.879305943Z",
  "published": "2023-05-12T18:46:55.995Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32305.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/aiven/aiven-extras/security/advisories/GHSA-7r4w-fw4h-67gp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-32305"
    },
    {
      "type": "ADVISORY",
      "url": "https://security.netapp.com/advisory/ntap-20230616-0006/"
    },
    {
      "type": "FIX",
      "url": "https://github.com/aiven/aiven-extras/commit/8682ae01bec0791708bf25791786d776e2fb0250"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "aiven-extras PostgreSQL Privilege Escalation Through Overloaded Search Path"
}