SQL injection in PostgreSQL pg_dump via not-null constraint names
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-89.
Summary
PostgreSQL 18 minor versions before 18.7 are affected. The pg_dump tool does not quote a not-null constraint name on an inherited column, which is SQL injection (CWE-89). An object creator with low privileges can execute arbitrary SQL as the user who restores the dump. Versions before PostgreSQL 18 are unaffected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
SQL injection in PostgreSQL pg_dump 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | PostgreSQL | 18 to before 18.7 | 18.7 | Patch available | CNA |
- PostgreSQL Vendor— Affected 18 to before 18.7 Fixed in 18.7 Patch available CNA
Remediation
Upgrade PostgreSQL 18 to version 18.7 or later. Red Hat advisories RHSA-2026:99821 and RHSA-2026:80584 cover Red Hat Hardened Images, and Red Hat lists its plan for that product as none available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA PostgreSQL Fixed in 18.7
Red Hat 2 advisories
- RHSA-2026:99821 Released 2026-11-12 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images libpq-18.7-0.1.hum1@aarch64, libpq-18.7-0.1.hum1@s390x, libpq-18.7-0.1.hum1@src +4
- RHSA-2026:80584 Released 2026-10-12 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images postgresql17-17.11-1.2.hum1@aarch64, postgresql17-17.11-1.2.hum1@s390x, postgresql17-17.11-1.2.hum1@src +43
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
PostgreSQL 18.7
5 records Highest priority Priority MEDIUM 3 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-90377 PostgreSQL type-cache invalidation gap allows arbitrary code executionPriority MEDIUM 41
- TI-2026-90366 Type confusion in PostgreSQL statistics import allows code executionPriority MEDIUM 41
- TI-2026-90351 Untrusted search path in PostgreSQL vacuumdb enables code executionPriority LOW 34
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Hardened Images | Affected | No fix yet |
| Red Hat Hardened Images | Fixed | RHSA-2026:80584, RHSA-2026:99821 |
Timeline
- 2026-11-12 Threatist record created from CVE-2026-116318
- 2026-11-12 Alias added: GHSA-6vgg-f58c-3v5x
- 2026-11-12 Affected versions changed · Red Hat
- 2026-11-12 CVSS score added · Red Hat
- 2026-11-12 CISA SSVC decision points changed
- 2026-11-13 CISA SSVC decision points changed
- 2026-11-13 Fix available: Red Hat Hardened Images · Red Hat
- 2026-11-13 Fix available: RHSA-2026:80584 · Red Hat
- 2026-11-13 Fix available: RHSA-2026:99821 · Red Hat
References
Sources
- CVE-2026-116318 · CVE Program
- CVE-2026-116318 · NVD
- FIRST EPSS
- GHSA-6vgg-f58c-3v5x · GitHub Advisory Database · CC BY 4.0
- CVE-2026-116318 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences