{"id":"CVE-2026-61818","aliases":["CVE-2026-61818"],"related":[],"kind":"vulnerability","state":"published","title":"pg_partman SQL injection in undo partition time encoder","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-18T19:47:30.083Z","modified":"2026-09-24T21:22:19.873Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 5.5.0","status":"affected"}],"vendor":"pgpartman","product":"pg_partman","source":"cvelist"}],"references":[{"url":"https://github.com/pgpartman/pg_partman/security/advisories/GHSA-fm3m-9fh7-mqfc","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pgpartman/pg_partman/commit/ba9405542acf24dd881845b935cab8b165854361","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pgpartman/pg_partman/releases/tag/v5.5.0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-19T13:37:38.282Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61818","url":"https://www.cve.org/CVERecord?id=CVE-2026-61818","licence":"CVE Terms of Use","modified":"2026-09-19T14:11:36.597Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61818","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61818","licence":"Public domain","modified":"2026-09-24T21:22:19.873Z"}],"updatedAt":"2026-11-25T22:59:39.665Z","epss":{"score":0.0041,"percentile":0.37302,"date":"2026-12-01T12:00:22.000Z"}}