{"id":"CVE-2026-61818","published":"2026-09-18T19:47:30Z","modified":"2026-09-19T14:11:36Z","title":"pg_partman SQL injection in undo partition time encoder","vendor":"pgpartman","product":"pg_partman","tier":"tail","description":{"text":"pg_partman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, undo_partition() reads part_config.time_encoder as unrestricted text and interpolates it without identifier quoting into a dynamically executed SELECT statement. A role with partman_user access can store SQL rather than a function name, and the SQL executes with the privileges of the caller that invokes undo_partition(). The function is not part of the default background-worker path, which limits the automatic superuser escalation described by the related create-partition vulnerability, but a privileged caller can still have its available confidentiality, integrity, and availability permissions abused. This issue is fixed in version 5.5.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00513,"percentile":0.4463,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/pgpartman/pg_partman/security/advisories/GHSA-fm3m-9fh7-mqfc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pgpartman/pg_partman/commit/ba9405542acf24dd881845b935cab8b165854361","tags":["x_refsource_MISC"]},{"url":"https://github.com/pgpartman/pg_partman/releases/tag/v5.5.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":8.93},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"pgpartman","affectedVersions":[{"vendor":"pgpartman","product":"pg_partman","versions":["< 5.5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-19T13:37:38.282887Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-83427","exploited":false,"provenance":"source"}}