CVE-2026-61818: pg_partman SQL injection in undo partition time encoder

Published Sep 18, 2026
·
Updated

pgpartman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, undopartition() reads partconfig.timeencoder as unrestricted text and interpolates it without identifier quoting into a dynamically executed SELECT statement. A role with partmanuser access can store SQL rather than a function name, and the SQL executes with the privileges of the caller that invokes undopartition(). 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.

Affected Software

1 affected component
pg_partman pg_partman<5.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pg_partman to a version that resolves this vulnerability.

    Fixed in 5.5.0

Event History

Sep 18, 2026
CVE Published
via MITRE·07:47 PM
Data Sourced
via MITRE·07:47 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue, and whose privileges are used for the injected SQL?

A role with partman_user access can place SQL in part_config.time_encoder. That SQL executes with the privileges of the caller that invokes undo_partition(), so impact depends on the permissions held by that caller.

2

Is the default pg_partman background-worker workflow affected?

No. undo_partition() is not part of the default background-worker path, limiting automatic superuser escalation through that path.

3

Which deployments should be prioritized for remediation?

Prioritize deployments where partman_user-access roles can modify time_encoder values and where more privileged roles invoke undo_partition(). Those privileged callers may have their confidentiality, integrity, and availability permissions abused.

4

What version fixes the issue?

The issue is fixed in pg_partman version 5.5.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203