Command injection in PostgreSQL - CVE-2026-116330

 

Command injection in PostgreSQL - CVE-2026-116330

Published: November 12, 2026


Vulnerability identifier: #VU166107
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-116330
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code as the client operating system account running psql.

The vulnerability exists due to improper neutralization of psql commands in PostgreSQL pg_dump tar-format restore.sql when incorporating untrusted data using a predictable restriction key. A remote attacker can supply malicious dump content through a compromised origin server to execute arbitrary code when a victim runs restore.sql with psql.


Affected software

PostgreSQL

How to mitigate CVE-2026-116330

Install security update from vendor's website.

PostgreSQL - addressed in versions 14.25, 15.20, 16.16, 17.12, 18.7

External References

Related Security Bulletins