BIT-postgresql-2026-18408

See a problem?
Import Source
https://github.com/bitnami/vulndb/tree/main/data/postgresql/BIT-postgresql-2026-18408.json
JSON Data
https://api.osv.dev/v1/vulns/BIT-postgresql-2026-18408
Aliases
  • CVE-2026-18408
Published
2026-08-19T08:52:54Z
Modified
2026-09-08T08:48:18Z
Summary
PostgreSQL psql \unrestrict lets superuser of pg_dump origin server execute arbitrary code in psql client
Details

Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql \restrict meta-command input expansion. The fix for CVE-2025-8714 introduced \restrict and \unrestrict to block this attack, but \unrestrict itself was sufficient for an attack. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. Non-core use of \restrict would be affected, but we've not identified non-core use. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Database specific
{
    "cpes": [
        "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*"
    ],
    "severity": "High"
}
References

Affected packages

Bitnami / postgresql

Package

Name
postgresql
Purl
pkg:bitnami/postgresql

Severity

  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
14.24.0
Introduced
15.0.0
Fixed
15.19.0
Introduced
16.0.0
Fixed
16.15.0
Introduced
17.0.0
Fixed
17.11.0
Introduced
18.0.0
Fixed
18.5.0

Database specific

source
"https://github.com/bitnami/vulndb/tree/main/data/postgresql/BIT-postgresql-2026-18408.json"