BIT-postgresql-2020-25696: High severity PostgreSQL psql vulnerability
A flaw was found in the psql interactive terminal of PostgreSQL in versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. If an interactive psql session uses \gset when querying a compromised server, the attacker can execute arbitrary code as the operating system account running psql. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 13.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.10 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.15 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.6.20 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.5.24