# CVE-2025-31480: aiven-extras allows PostgreSQL Privilege Escalation through format function

> CVE-2025-31480: aiven-extras allows PostgreSQL Privilege Escalation through format function. CVSS 9.1 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-31480
Last updated: 2026-06-17T09:10:28Z

- Published: 2025-04-04 14:49 UTC · Updated: 2026-06-17 09:10 UTC · Assigner: GitHub\_M
- CVSS: 9.1 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- EPSS: 0.49%, 42th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-426

## Description

aiven-extras is a PostgreSQL extension. This is a privilege escalation vulnerability, allowing elevation to superuser inside PostgreSQL databases that use the aiven-extras package. The vulnerability leverages the format function not being schema-prefixed. Affected users should install 1.1.16 and ensure they run the latest version issuing ALTER EXTENSION aiven\_extras UPDATE TO '1.1.16' after installing it. This needs to happen in each database aiven\_extras has been installed in.

## Affected vendors and products

- aiven: aiven-extras

## Tracked companies

- [Aiven](https://rewindex.com/company/aiven.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-31480)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-31480)
- [https://github.com/aiven/aiven-extras/commit/77b5f19a0c1d196bc741ff5c774f85fe7ca3063b](https://github.com/aiven/aiven-extras/commit/77b5f19a0c1d196bc741ff5c774f85fe7ca3063b)
- [https://github.com/aiven/aiven-extras/security/advisories/GHSA-33xh-jqgf-6627](https://github.com/aiven/aiven-extras/security/advisories/GHSA-33xh-jqgf-6627)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-31480 · Markdown: https://rewindex.com/cve/CVE-2025-31480.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-31480 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:14:52.739Z
