SQL injection in PostgreSQL - CVE-2020-25695

 

SQL injection in PostgreSQL - CVE-2020-25695

Published: November 16, 2020 / Updated: November 16, 2020


Vulnerability identifier: #VU48436
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-25695
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.

The vulnerability exists due to insufficient sanitization of user-supplied data. A remote authenticated attacker can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.

Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.


Affected software

PostgreSQL
Arch Linux
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Power, big endian
CentOS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for x86_64 - 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 Power, little endian - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Ubuntu
openEuler
Fedora
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
postgresql (Red Hat package)
rh-postgresql10-postgresql (Red Hat package)
rh-postgresql12-postgresql (Red Hat package)
postgresql (Alpine package)
postgresql
postgresql-help
postgresql-debuginfo
postgresql-static
postgresql-test-rpm-macros
postgresql-libs
postgresql-debugsource
postgresql-server
postgresql-contrib
postgresql-test
postgresql-pltcl
postgresql-plperl
postgresql-devel
postgresql-plpython3
postgresql-9.5 (Ubuntu package)
postgresql-10 (Ubuntu package)
postgresql-12 (Ubuntu package)
Red Hat Software Collections
IBM Security Verify Access
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-25695

Install updates from vendor's website.

PostgreSQL - addressed in versions 9.5.24, 9.6.20, 10.15, 11.10, 12.5, 13.1
postgresql (Red Hat package) - update to 9.2.24-6.el7_9
rh-postgresql10-postgresql (Red Hat package) - update to 10.15-1.el7
rh-postgresql12-postgresql (Red Hat package) - update to 12.5-1.el7
Zoho ManageEngine OpManager - update to 12.5 125397
postgresql - addressed in versions 10-3220210113115521.43bbeeef, 10-3320210113115521.601d93de, 11-3220210113151114.43bbeeef, 11-3320210114142718.601d93de, 12-3320210119180006.601d93de
postgresql-help - 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-test - update to 10.5-19
postgresql - update to 10.5-19
postgresql-pltcl - 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
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
Dell Security Management Server - update to 11.0.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
postgresql-9.5 (Ubuntu package) - update to 9.5.24-0ubuntu0.16.04.1
postgresql-10 (Ubuntu package) - update to 10.15-0ubuntu0.18.04.1
postgresql-12 (Ubuntu package) - addressed in versions 12.5-0ubuntu0.20.04.1, 12.5-0ubuntu0.20.10.1

External References

Related Security Bulletins