{"id":"CVE-2021-33204","aliases":["DEBIAN-CVE-2021-33204","EUVD-2021-19916","GHSA-p3fg-5jpr-hm49","UBUNTU-CVE-2021-33204"],"status":"published","title":"In the pg_partman (aka PG Partition Manager) extension before 4.5.1 for PostgreSQL, arbitrary...","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.022,"percentile":0.82747,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77"],"published":"2021-05-19T16:23:30Z","modified":"2026-10-23T18:04:00Z","fixes":[{"ecosystem":"Debian:12","package":"pg-partman","fixed_in":["4.5.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"pg-partman","fixed_in":["4.5.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pg-partman","fixed_in":["4.5.1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"pg-partman","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"pg-partman","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"pg-partman","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.1-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"pg-partman","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.2-1","2.2.2-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"pg-partman","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.3-1","3.1.0-1","3.1.1-1","3.1.2-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"pg-partman","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.0-1","4.2.0-1","4.2.2-1","4.3.0-1"]}],"products":[{"vendor":"pgxn","product":"pg_partman"}],"references":[{"url":"https://github.com/pgpartman/pg_partman/commit/0b6565ad378c358f8a6cd1d48ddc482eb7f854d3","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/pgpartman/pg_partman/compare/v4.5.0...v4.5.1","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://security.netapp.com/advisory/ntap-20210625-0006/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33204"},{"url":"https://github.com/advisories/GHSA-p3fg-5jpr-hm49"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-33204","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-33204","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-33204","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-33204","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.","status":"published","published":"2021-05-19T16:23:30Z","modified":"2024-08-03T23:42:20.291Z","updated_at":"2026-11-02T14:33:10.204494Z"}],"euvd":[{"id":"EUVD-2021-19916","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.","status":"published","published":"2021-05-19T16:23:30Z","modified":"2024-08-03T23:42:20Z","updated_at":"2026-11-03T03:24:34.73748Z"}],"ghsa":[{"id":"GHSA-p3fg-5jpr-hm49","title":"In the pg_partman (aka PG Partition Manager) extension before 4.5.1 for PostgreSQL, arbitrary...","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.","status":"published","published":"2022-05-24T19:02:47Z","modified":"2023-01-27T05:02:57Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:42:08.04985Z"}],"nvd":[{"id":"CVE-2021-33204","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.","status":"published","published":"2021-05-19T17:15:07.537Z","modified":"2026-06-17T03:54:21.027Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:06:53.343329Z"}],"osv":[{"id":"CVE-2021-33204","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.","status":"published","published":"2021-05-19T17:15:07.537Z","modified":"2026-10-20T10:54:44.002946041Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:19.793849Z"},{"id":"DEBIAN-CVE-2021-33204","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.","status":"published","published":"2021-05-19T17:15:07.537Z","modified":"2026-10-23T18:04:00.174744774Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-33204","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.","status":"published","published":"2021-05-19T17:15:00Z","modified":"2026-10-08T12:50:17.435942162Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:27.332852Z"}]}}
