SecurityContext

CVE-2021-33204: pg_partman - Remote Code Execution

  • Cve: CVE-2021-33204
  • Name: pg_partman - Remote Code Execution
  • 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.
  • Impact: Attackers can execute arbitrary code within the database, potentially leading to full database or server compromise.
  • Remediation: Update to version 4.5.1 or later.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs database access with privileges to execute functions
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.022
  • Epss percentile: 0.82856
  • Assignee: [email protected]
  • Published at: 2021-05-19T17:15:07Z
  • Age in days: 2015
  • Modified at: 2026-06-17T03:54:21Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-33204
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
NVD-CWE-noinfo—

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/pgpartman/pg_partman/commit/0b6565ad378c358f8a6cd1d48ddc482eb7f854d3Patch, Third Party Advisory
https://github.com/pgpartman/pg_partman/compare/v4.5.0...v4.5.1Patch, Third Party Advisory
https://security.netapp.com/advisory/ntap-20210625-0006/Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
pgxn:pg_partman< 4.5.1nonvd/v1/products/pgxn/pg_partman

Projects

RepositoryLink kindsIndexedUrl
pgpartman/pg_partmancommit, compare, fixyes/v1/repositories/pgpartman/pg_partman

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts