Input validation error in PostgreSQL - CVE-2020-25696
Published: November 16, 2020 / Updated: November 16, 2020
Vulnerability identifier: #VU48438
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-25696
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to compromise the target system.
The vulnerability exists due to the "\gset" meta-command does not distinguish variables that control psql behavior. A remote attacker can execute arbitrary code as the operating system account.
Affected software
PostgreSQL
Arch Linux
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Ubuntu
openEuler
Fedora
postgresql (Alpine package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
rh-postgresql10-postgresql (Red Hat package)
rh-postgresql12-postgresql (Red Hat package)
libpq (Red Hat package)
postgresql-9.5 (Ubuntu package)
postgresql-help
postgresql-plperl
postgresql-devel
postgresql-plpython3
postgresql-pltcl
postgresql-debuginfo
postgresql-static
postgresql-test-rpm-macros
postgresql-libs
postgresql-debugsource
postgresql-server
postgresql-contrib
postgresql
postgresql-test
postgresql-10 (Ubuntu package)
postgresql-12 (Ubuntu package)
Red Hat Software Collections
Zoho ManageEngine OpManager
Analytics Content Hub
XtremIO X2
Dell Security Management Server
Dell EMC Unity Operating Environment (OE)
Dell EMC Unity VSA Operating Environment (OE)
Dell EMC Unity XT Operating Environment (OE)
EMC Data Protection Advisor
EMC NetWorker Server
Arch Linux
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Ubuntu
openEuler
Fedora
postgresql (Alpine package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
rh-postgresql10-postgresql (Red Hat package)
rh-postgresql12-postgresql (Red Hat package)
libpq (Red Hat package)
postgresql-9.5 (Ubuntu package)
postgresql-help
postgresql-plperl
postgresql-devel
postgresql-plpython3
postgresql-pltcl
postgresql-debuginfo
postgresql-static
postgresql-test-rpm-macros
postgresql-libs
postgresql-debugsource
postgresql-server
postgresql-contrib
postgresql
postgresql-test
postgresql-10 (Ubuntu package)
postgresql-12 (Ubuntu package)
Red Hat Software Collections
Zoho ManageEngine OpManager
Analytics Content Hub
XtremIO X2
Dell Security Management Server
Dell EMC Unity Operating Environment (OE)
Dell EMC Unity VSA Operating Environment (OE)
Dell EMC Unity XT Operating Environment (OE)
EMC Data Protection Advisor
EMC NetWorker Server
How to mitigate CVE-2020-25696
Install updates from vendor's website.
PostgreSQL - addressed in versions 9.5.24, 9.6.20, 10.15, 11.10, 12.5, 13.1
rh-postgresql10-postgresql (Red Hat package) - update to 10.15-1.el7
rh-postgresql12-postgresql (Red Hat package) - update to 12.5-1.el7
libpq (Red Hat package) - addressed in versions 12.5-1.el8_0, 12.5-1.el8_2, 12.5-1.el8_3, 12.5-2.el8_1
Zoho ManageEngine OpManager - update to 12.5 125397
Analytics Content Hub - update to 2.3
Dell EMC Unity Operating Environment (OE) - update to 5.1.2.0.5.007
Dell EMC Unity VSA Operating Environment (OE) - update to 5.1.2.0.5.007
Dell EMC Unity XT Operating Environment (OE) - update to 5.1.2.0.5.007
XtremIO X2 - update to 6.4.1-11
postgresql-9.5 (Ubuntu package) - update to 9.5.24-0ubuntu0.16.04.1
postgresql-help - update to 10.5-19
postgresql-plperl - update to 10.5-19
postgresql-devel - update to 10.5-19
postgresql-plpython3 - update to 10.5-19
postgresql-pltcl - update to 10.5-19
postgresql-debuginfo - update to 10.5-19
postgresql-static - update to 10.5-19
postgresql-test-rpm-macros - update to 10.5-19
postgresql-libs - update to 10.5-19
postgresql-debugsource - update to 10.5-19
postgresql-server - update to 10.5-19
postgresql-contrib - update to 10.5-19
postgresql - update to 10.5-19
postgresql-test - update to 10.5-19
postgresql-10 (Ubuntu package) - update to 10.15-0ubuntu0.18.04.1
postgresql - addressed in versions 10-3220210113115521.43bbeeef, 10-3320210113115521.601d93de, 11-3220210113151114.43bbeeef, 11-3320210114142718.601d93de, 12-3320210119180006.601d93de
Dell Security Management Server - update to 11.0.1
postgresql-12 (Ubuntu package) - addressed in versions 12.5-0ubuntu0.20.04.1, 12.5-0ubuntu0.20.10.1
EMC Data Protection Advisor - addressed in versions 19.4.0 B21, 19.5
EMC NetWorker Server - addressed in versions 19.6.1.3, 19.7.0.1
rh-postgresql10-postgresql (Red Hat package) - update to 10.15-1.el7
rh-postgresql12-postgresql (Red Hat package) - update to 12.5-1.el7
libpq (Red Hat package) - addressed in versions 12.5-1.el8_0, 12.5-1.el8_2, 12.5-1.el8_3, 12.5-2.el8_1
Zoho ManageEngine OpManager - update to 12.5 125397
Analytics Content Hub - update to 2.3
Dell EMC Unity Operating Environment (OE) - update to 5.1.2.0.5.007
Dell EMC Unity VSA Operating Environment (OE) - update to 5.1.2.0.5.007
Dell EMC Unity XT Operating Environment (OE) - update to 5.1.2.0.5.007
XtremIO X2 - update to 6.4.1-11
postgresql-9.5 (Ubuntu package) - update to 9.5.24-0ubuntu0.16.04.1
postgresql-help - update to 10.5-19
postgresql-plperl - update to 10.5-19
postgresql-devel - update to 10.5-19
postgresql-plpython3 - update to 10.5-19
postgresql-pltcl - update to 10.5-19
postgresql-debuginfo - update to 10.5-19
postgresql-static - update to 10.5-19
postgresql-test-rpm-macros - update to 10.5-19
postgresql-libs - update to 10.5-19
postgresql-debugsource - update to 10.5-19
postgresql-server - update to 10.5-19
postgresql-contrib - update to 10.5-19
postgresql - update to 10.5-19
postgresql-test - update to 10.5-19
postgresql-10 (Ubuntu package) - update to 10.15-0ubuntu0.18.04.1
postgresql - addressed in versions 10-3220210113115521.43bbeeef, 10-3320210113115521.601d93de, 11-3220210113151114.43bbeeef, 11-3320210114142718.601d93de, 12-3320210119180006.601d93de
Dell Security Management Server - update to 11.0.1
postgresql-12 (Ubuntu package) - addressed in versions 12.5-0ubuntu0.20.04.1, 12.5-0ubuntu0.20.10.1
EMC Data Protection Advisor - addressed in versions 19.4.0 B21, 19.5
EMC NetWorker Server - addressed in versions 19.6.1.3, 19.7.0.1
External References
Related Security Bulletins
- Multiple vulnerabilities in PostgreSQL
- Arch Linux update for postgresql
- Input validation error in postgresql (Alpine package)
- Red Hat Software Collections update for rh-postgresql10-postgresql
- Red Hat Software Collections update for rh-postgresql12-postgresql
- Gentoo update for PostgreSQL
- Red Hat Enterprise Linux 8 update for libpq
- Red Hat Enterprise Linux 8 update for the postgresql:10 module
- Red Hat Enterprise Linux 8 update for the postgresql:9.6 module
- Red Hat Enterprise Linux 8 update for the postgresql:12 module
- Red Hat Enterprise Linux 8 update for the postgresql:9.6 module
- Red Hat Enterprise Linux 8 update for the postgresql:10 module
- Red Hat Enterprise Linux 8 update for libpq
- Red Hat Enterprise Linux 8.2 update for libpq
- Amazon Linux AMI update for postgresql95, postgresql96
- Red Hat Enterprise Linux 8.2 update for the postgresql:10 module
- Red Hat Enterprise Linux 8.2 update for the postgresql:12 module
- Red Hat Enterprise Linux 8.2 update for the postgresql:9.6 module
- Red Hat Enterprise Linux 8.1 update for libpq
- Red Hat Enterprise Linux 8.1 update for the postgresql:10 module
- Red Hat Enterprise Linux 8.1 update for the postgresql:9.6 module
- Zoho ManageEngine OpManager update for PostgreSQL
- Multiple vulnerabilities in Dell EMC Unity
- Multiple vulnerabilities in Dell NetWorker
- Multiple vulnerabilities in Dell EMC Data Protection Advisor (DPA)
- Multiple vulnerabilities in Dell Security Management
- Multiple vulnerabilities in Dell XtremIO X2
- openEuler 20.03 LTS update for postgresql
- Multiple vulnerabilities in IBM Analytics Content Hub
- Fedora 32 Modular update for postgresql
- Fedora 33 Modular update for postgresql
- Fedora 32 Modular update for postgresql
- Fedora 33 Modular update for postgresql
- Fedora 33 Modular update for postgresql
- Ubuntu update for postgresql-10