CVE-2019-10164 Memory corruption in PostgreSQL

High 7.5 Published Updated

An authenticated user can execute arbitrary code as the OS account via a stack-based buffer overflow when changing their password.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-10164?

CVE-2019-10164 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 26 Jun 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

PostgreSQL versions 10.x before 10.9 and versions 11.x before 11.4 are vulnerable to a stack-based buffer overflow. Any authenticated user can overflow a stack-based buffer by changing the user's own password to a purpose-crafted value. This often suffices to execute arbitrary code as the PostgreSQL operating system account.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2019-10164?

It affects 4 products.

Linux distribution packages (40)
libpq Red Hat:enterprise_linux:8::appstreamAll versions0:12.1-3.el8
libpq-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:12.1-3.el8
libpq-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:12.1-3.el8
libpq-devel Red Hat:enterprise_linux:8::appstreamAll versions0:12.1-3.el8
libpq-devel-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:12.1-3.el8
postgresql10 SUSE:Enterprise Storage 4All versions10.9-1.12.2
postgresql10-libs SUSE:Enterprise Storage 4All versions10.9-1.12.1
postgresql10 SUSE:Enterprise Storage 5All versions10.9-1.12.2
postgresql10 SUSE:Enterprise Storage 5All versions10.9-1.12.2
postgresql10-libs SUSE:Enterprise Storage 5All versions10.9-1.12.1
postgresql10-libs SUSE:Enterprise Storage 5All versions10.9-1.12.1
postgresql10 SUSE:HPE Helion OpenStack 8All versions10.9-1.12.2
postgresql10-libs SUSE:HPE Helion OpenStack 8All versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Desktop 12 SP4All versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Desktop 12 SP4All versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server 12 SP2-BCLAll versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server 12 SP2-BCLAll versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server 12 SP3-BCLAll versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server 12 SP3-BCLAll versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions10.9-1.12.2
postgresql10 SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions10.9-1.12.1
postgresql10-libs SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server 12 SP4All versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server 12 SP4All versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server 12-LTSSAll versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server 12-LTSSAll versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions10.9-1.12.1
postgresql10 SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions10.9-1.12.2
postgresql10-libs SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions10.9-1.12.1
postgresql10-libs SUSE:Linux Enterprise Software Development Kit 12 SP4All versions10.9-1.12.1

Products include Fedoraproject Fedora, Opensuse Leap, Postgresql Postgresql, Redhat Enterprise Linux.

How do I fix CVE-2019-10164?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-10164 being exploited?

There is no known exploitation of CVE-2019-10164 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2019-10164, CLEANSTART-2026-PY31391, GHSA-gr34-mv2c-wc84, MGASA-2019-0204, RHEA-2020:0343, SUSE-SU-2019:1783-1 and 4 more.

Is CVE-2019-10164 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free