Skip to content
Heist/ feed
Back to feed
Critical

pg-partman — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-33204

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.

Products
pg-partman
Affected versions
2.2.2-1, 2.2.2-2, 2.6.3-1, 3.1.0-1, 3.1.1-1, 3.1.2-1, 4.0.0-1, 4.2.0-1, 4.2.2-1, 4.3.0-1
Fixed versions
Not specified
CVEs
CVE-2021-33204
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 09:08 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-33204

core-osv · Original source

Published 19 May 2021, 17:15 UTC

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.

osv:UBUNTU-CVE-2021-33204

pg-partman

Fixed versions: Not specified

pg-partman

Fixed versions: Not specified

pg-partman

Fixed versions: Not specified

Complete source record
{
  "id": "2b0ffe8b823fdf9a4d8cc3837313c53a7044b5ee458ea34d53bda7e816490309",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-33204",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-33204",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2021-33204",
    "products": [
      {
        "name": {
          "value": "pg-partman",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.2.2-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pg-partman",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.1.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.1.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.1.2-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pg-partman",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.2.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.2.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.3.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2021-33204",
      "aliases": [
        "UBUNTU-CVE-2021-33204"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pg-partman",
            "purl": "pkg:deb/ubuntu/pg-partman?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.2.2-1",
            "2.2.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33204.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "postgresql-9.5-partman",
                "binary_version": "2.2.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pg-partman",
            "purl": "pkg:deb/ubuntu/pg-partman?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.6.3-1",
            "3.1.0-1",
            "3.1.1-1",
            "3.1.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33204.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "postgresql-10-partman",
                "binary_version": "3.1.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pg-partman",
            "purl": "pkg:deb/ubuntu/pg-partman?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "4.0.0-1",
            "4.2.0-1",
            "4.2.2-1",
            "4.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33204.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "postgresql-12-partman",
                "binary_version": "4.3.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-08T12:50:17.435942162Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-33204"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-33204",
        "https://github.com/pgpartman/pg_partman/commit/0b6565ad378c358f8a6cd1d48ddc482eb7f854d3",
        "https://github.com/pgpartman/pg_partman/compare/v4.5.0...v4.5.1",
        "https://www.cve.org/CVERecord?id=CVE-2021-33204"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-33204",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 99530,
  "published_at": "2021-05-19T17:15:00+00:00"
}