High · published August 11, 2023
IN THE EXTENSION SCRIPT, a SQL Injection vulnerability was found in PostgreSQL if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, '', or ""). If an administrator has installed files of a vulnerable, trusted, non-bundled extension, an attacker with database-level CREATE privilege can execute arbitrary code as the bootstrap superuser.
| Product | Versions | Fixed in |
|---|---|---|
| postgresql/postgresql | ≥ 11.0, < 11.21 | 11.21 |
| postgresql/postgresql | ≥ 12.0, < 12.16 | 12.16 |
| postgresql/postgresql | ≥ 13.0, < 13.12 | 13.12 |
| postgresql/postgresql | ≥ 14.0, < 14.9 | 14.9 |
| postgresql/postgresql | ≥ 15.0, < 15.4 | 15.4 |
| redhat/software_collections | all versions | — |
| redhat/enterprise_linux | all versions | — |
| redhat/enterprise_linux | all versions | — |
| debian/debian_linux | all versions | — |
| debian/debian_linux | all versions | — |
| debian/debian_linux | all versions | — |