
CVE catalog
CVE-2021-33204
pg-partman: CVE-2021-33204
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.20% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pg-partman | sid | 5.5.0-1 | fixed |
| Debian | pg-partman | forky | 5.5.0-1 | fixed |
| Debian | pg-partman | trixie | 5.2.4-1 | fixed |
| Debian | pg-partman | bookworm | 4.7.2-1 | fixed |
| Ubuntu | pg-partman | 16.04 | 2.2.2-1 | vulnerable |
| Ubuntu | pg-partman | 16.04 | 2.2.2-2 | vulnerable |
| Ubuntu | pg-partman | 18.04 | 2.6.3-1 | vulnerable |
| Ubuntu | pg-partman | 18.04 | 3.1.0-1 | vulnerable |
| Ubuntu | pg-partman | 18.04 | 3.1.1-1 | vulnerable |
| Ubuntu | pg-partman | 18.04 | 3.1.2-1 | vulnerable |
| Ubuntu | pg-partman | 20.04 | 4.0.0-1 | vulnerable |
| Ubuntu | pg-partman | 20.04 | 4.2.0-1 | vulnerable |
| Ubuntu | pg-partman | 20.04 | 4.2.2-1 | vulnerable |
| Ubuntu | pg-partman | 20.04 | 4.3.0-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pg-partman | source | sid | 4.5.1-1 | not yet assigned | Not reported | [988917] |
| Debian | pg-partman | source | forky | 4.5.1-1 | not yet assigned | Not reported | [988917] |
| Debian | pg-partman | source | trixie | 4.5.1-1 | not yet assigned | Not reported | [988917] |
| Debian | pg-partman | source | bookworm | 4.5.1-1 | not yet assigned | Not reported | [988917] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [postgresql-15-partman]Fixed
Source package: [pg-partman]
Details (2)
4.7.2-1· amd64 · bookwormFixed · Fixed:
4.5.1-1dsa · pg-partman · debian · bookworm; dsa · pg-partman · debian · 12
4.7.2-1· arm64 · bookwormFixed · Fixed:
4.5.1-1dsa · pg-partman · debian · bookworm; dsa · pg-partman · debian · 12
[Debian 13 (Trixie)]
- [postgresql-17-partman]Fixed
Source package: [pg-partman]
Details (2)
5.2.4-1· amd64 · trixieFixed · Fixed:
4.5.1-1dsa · pg-partman · debian · 13
5.2.4-1· arm64 · trixieFixed · Fixed:
4.5.1-1dsa · pg-partman · debian · 13
Observed: