BIT-postgresql-2026-116318: PostgreSQL pg_dump not-null constraint name allows SQL injection

Published Nov 27, 2026
·
Updated

SQL injection in PostgreSQL pgdump allows an object creator to execute arbitrary SQL as the user restoring the dump, via an inherited column having a child-local not-null constraint whose name requires quoting. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

Affected Software

1 affected componentFixes available
bitnami/postgresql>=18.0.0<18.7.0
18.7.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade bitnami/postgresql to a version that resolves this vulnerability.

    Fixed in 18.7.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 18.7

Event History

Nov 27, 2026
Advisory Published
via OSV·05:52 AM
Data Sourced
via OSV·05:52 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Deployments running PostgreSQL 18 before 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

2

What does an attacker need to exploit it?

An attacker must be able to create a database object involving an inherited column with a child-local not-null constraint whose name requires quoting. Exploitation occurs when a dump containing that object is restored by another user.

3

What is the impact of restoring a malicious dump?

Arbitrary SQL can execute with the privileges of the user performing the restore. This can affect confidentiality, integrity, and availability at the privilege level of that restore user.

4

What should be done if an affected version is in use?

Update PostgreSQL 18 to version 18.7 or later. Until then, treat dumps that may contain objects created by untrusted users as unsafe to restore, particularly when restoring with privileged accounts.

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