Stack-based buffer overflow in PostgreSQL - CVE-2019-10164

 

Stack-based buffer overflow in PostgreSQL - CVE-2019-10164

Published: June 20, 2019


Vulnerability identifier: #VU18861
CSH Severity: Medium
CVSS v4: 8.6 [CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-10164
CWE-ID: CWE-121
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing users passwords. A remote authenticated user can change his/her password to a specially crafted string, trigger stack-based buffer overflow and execute arbitrary code on the target system or crash the PostgreSQL process.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

PostgreSQL
Gentoo Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
Opensuse
Fedora
postgresql (Alpine package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
rh-postgresql10-postgresql (Red Hat package)
postgresql-10 (Ubuntu package)
postgresql-11 (Ubuntu package)
postgresql
libpq
Dell Security Management Server
EMC NetWorker Server

How to mitigate CVE-2019-10164

Install updates from vendor's website.

PostgreSQL - addressed in versions 10.9, 11.4, 12
postgresql (Alpine package) - addressed in versions 10.9-r0, 11.4-r0
rh-postgresql10-postgresql (Red Hat package) - update to 10.12-2.el7
postgresql-10 (Ubuntu package) - addressed in versions 10.9-0ubuntu0.18.04.1, 10.9-0ubuntu0.18.10.1
postgresql-11 (Ubuntu package) - update to 11.4-0ubuntu0.19.04.1
postgresql - addressed in versions 10.9-1.fc29, 10-2920190712065154.6c81f848, 10-3020190712065154.a5b0195c, 11.4-1.fc30, 11-2920190717074535.6c81f848, 11-3020190717074535.a5b0195c
Dell Security Management Server - update to 11.0.1
libpq - update to 11.4-1.fc30
EMC NetWorker Server - addressed in versions 19.6.1.3, 19.7.0.1

External References

Related Security Bulletins