Description
In the pg_partman (aka PG Partition Manager) extension before 4.5.1 for PostgreSQL, arbitrary code execution can be achieved via SECURITY DEFINER functions because an explicit search_path is not set.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pg-partman | 4.5.1-1 | — |
| Debian 13 | pg-partman | 4.5.1-1 | — |
| Debian 12 | pg-partman | 4.5.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pg-partman | No fix yet | — |
| Ubuntu 18.04 LTS | pg-partman | No fix yet | — |
| Ubuntu 16.04 LTS | pg-partman | No fix yet | — |