Skip to content
Fencer Vulns
high 7.5

CVE-2019-10164 json

PostgreSQL versions 10.x before 10.9 and versions 11.x before 11.4 are vulnerable to a stack-based buffer overflow.

published 2019-06-26 7 y ago modified 2026-06-17 4 mo ago also EUVD-2019-2197

cvss
7.5
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
3.6%
EPSS 3.6% chance of exploitation in 30 days, percentile 89%
public exploits
0
none known

Summary

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.

Patch / fix

  • postgresql postgresql 10.9, 11.4
  • postgresql-10 Ubuntu 18.04 LTS 10.9-0ubuntu0.18.04.1

ubuntu advisories UBUNTU-CVE-2019-10164

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • postgresql RHEL 8 10.14-1.module+el8.2.0+7801+be0fed80
  • postgresql-test RHEL 8 10.14-1.module+el8.2.0+7801+be0fed80
  • postgresql-pltcl RHEL 8 10.14-1.module+el8.2.0+7801+be0fed80
  • postgresql-plperl RHEL 8 10.14-1.module+el8.2.0+7801+be0fed80
  • postgresql-server RHEL 8 10.14-1.module+el8.2.0+7801+be0fed80
  • postgresql-contrib RHEL 8 10.14-1.module+el8.2.0+7801+be0fed80
  • postgresql-upgrade RHEL 8 10.14-1.module+el8.2.0+7801+be0fed80
  • postgresql-plpython3 RHEL 8 10.14-1.module+el8.2.0+7801+be0fed80

red hat advisories RHSA-2021:0166RHSA-2020:5664RHSA-2020:3669RHSA-2020:0980RHEA-2020:0343

  • postgresql12 SLE Module for Server Applications 15 SP1, SLE Module for Basesystem 15 SP1 12.2-3.5.2
  • postgresql SLE Module for Server Applications 15 SP1, SLE Module for Basesystem 15 SP1 12-8.11.3
  • postgresql10 SLE Module for Server Applications 15 SP1, SLE Module for Basesystem 15 SP1 10.12-8.13.9
  • python-psycopg2 SLE Module for Basesystem 15 SP1 2.8.4-5.4.6
  • postgresql12-libs SLE Module for Server Applications 15 SP1, SLE Module for Basesystem 15 SP1 12.2-3.5.2
  • postgresql10 SLES 12 SP4, SLES 12 SP3-BCL, SLES 12 SP2-BCL +15 more 10.9-1.12.2
  • postgresql10-libs SLES 12 SP4, SLES 12 SP3-BCL, SLES 12 SP2-BCL +16 more 10.9-1.12.1
  • postgresql10 SLE Module for Server Applications 15 SP1, SLE Module for Basesystem 15 SP1 10.9-8.3.1

suse advisories SUSE-RU-2020:1280-1SUSE-SU-2019:1783-2SUSE-SU-2019:2012-1SUSE-SU-2019:1810-1SUSE-SU-2019:1783-1SUSE-SU-2019:1783-3

  • postgresql10 openSUSE Tumbleweed 10.18-1.3
  • postgresql11 openSUSE Tumbleweed 11.13-1.3
  • postgresql10 openSUSE Leap 15.1, openSUSE Leap 15.0 10.9-lp151.2.3.1

opensuse advisories openSUSE-SU-2024:11184-1openSUSE-SU-2024:11185-1openSUSE-SU-2019:1773-1

  • postgresql Alpine 3.14, Alpine 3.13, Alpine 3.12 +3 more 11.4-r0
  • postgresql Alpine 3.8, Alpine 3.7 10.9-r0
  • postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 11.4-r0
  • postgresql15 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 11.4-r0

alpine advisories ALPINE-CVE-2019-10164

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-10164 updated cvss 7.5

postgresql: Stack-based buffer overflow via setting a password

  • Red Hat Enterprise Linux AppStream (v. 8) libpq 12.1-3.el8, postgresql 10.14-1.module+el8.2.0+7801+be0fed80, postgresql-test 10.14-1.module+el8.2.0+7801+be0fed80, postgresql-pltcl 10.14-1.module+el8.2.0+7801+be0fed80, postgresql-plperl 10.14-1.module+el8.2.0+7801+be0fed80, postgresql-server 10.14-1.module+el8.2.0+7801+be0fed80, +4 more
    fixed: vendor fix RHEA-2020:0343
  • Red Hat Enterprise Linux AppStream E4S (v. 8.0) postgresql 10.15-1.module+el8.0.0+9155+4a85661a, postgresql-test 10.15-1.module+el8.0.0+9155+4a85661a, postgresql-pltcl 10.15-1.module+el8.0.0+9155+4a85661a, postgresql-plperl 10.15-1.module+el8.0.0+9155+4a85661a, postgresql-server 10.15-1.module+el8.0.0+9155+4a85661a, postgresql-contrib 10.15-1.module+el8.0.0+9155+4a85661a, +3 more
    fixed: vendor fix RHSA-2020:5664
  • Red Hat Enterprise Linux AppStream EUS (v. 8.1) postgresql 10.15-1.module+el8.1.0+9154+cd474635, postgresql-test 10.15-1.module+el8.1.0+9154+cd474635, postgresql-pltcl 10.15-1.module+el8.1.0+9154+cd474635, postgresql-plperl 10.15-1.module+el8.1.0+9154+cd474635, postgresql-server 10.15-1.module+el8.1.0+9154+cd474635, postgresql-contrib 10.15-1.module+el8.1.0+9154+cd474635, +3 more
    fixed: vendor fix RHSA-2021:0166
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql10-postgresql 10.12-2.el7, rh-postgresql10-postgresql-libs 10.12-2.el7, rh-postgresql10-postgresql-test 10.12-2.el7, rh-postgresql10-postgresql-pltcl 10.12-2.el7, rh-postgresql10-postgresql-plperl 10.12-2.el7, rh-postgresql10-postgresql-server 10.12-2.el7, +5 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-postgresql10-postgresql 10.12-2.el7, rh-postgresql10-postgresql-libs 10.12-2.el7, rh-postgresql10-postgresql-test 10.12-2.el7, rh-postgresql10-postgresql-pltcl 10.12-2.el7, rh-postgresql10-postgresql-plperl 10.12-2.el7, rh-postgresql10-postgresql-server 10.12-2.el7, +5 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-postgresql10-postgresql 10.12-2.el7, rh-postgresql10-postgresql-libs 10.12-2.el7, rh-postgresql10-postgresql-test 10.12-2.el7, rh-postgresql10-postgresql-pltcl 10.12-2.el7, rh-postgresql10-postgresql-plperl 10.12-2.el7, rh-postgresql10-postgresql-server 10.12-2.el7, +5 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-postgresql10-postgresql 10.12-2.el7, rh-postgresql10-postgresql-libs 10.12-2.el7, rh-postgresql10-postgresql-test 10.12-2.el7, rh-postgresql10-postgresql-pltcl 10.12-2.el7, rh-postgresql10-postgresql-plperl 10.12-2.el7, rh-postgresql10-postgresql-server 10.12-2.el7, +5 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql10-postgresql 10.12-2.el7, rh-postgresql10-postgresql-libs 10.12-2.el7, rh-postgresql10-postgresql-test 10.12-2.el7, rh-postgresql10-postgresql-pltcl 10.12-2.el7, rh-postgresql10-postgresql-plperl 10.12-2.el7, rh-postgresql10-postgresql-server 10.12-2.el7, +5 more
    fixed: vendor fix RHSA-2020:0980
  • Red Hat Decision Manager 7 postgresql Red Hat Enterprise Linux 5 postgresql Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Enterprise Linux 8 pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, +7 more Red Hat Process Automation 7 postgresql
    +5 more products
    Red Hat Satellite 5 rh-postgresql95, rh-postgresql95-postgresql Red Hat Satellite 6 postgresql Red Hat Software Collections rh-postgresql96-postgresql, rh-postgresql96-postgresql-libs, rh-postgresql96-postgresql-test, rh-postgresql96-postgresql-pltcl, rh-postgresql96-postgresql-plperl, rh-postgresql96-postgresql-server, +5 more Red Hat Storage 3 rhevm-dependencies Red Hat Virtualization 4 rh-postgresql95, rh-postgresql95-runtime, rh-postgresql95-scldevel, rh-postgresql10-postgresql, rh-postgresql95-postgresql, rh-postgresql10-postgresql-libs, +16 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.64% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.0 7.5 CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 9.0 AV:N/AC:L/Au:S/C:C/I:C/A:C

Affected products

  • PostgreSQL PostgreSQL

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.