CVE-2019-10130
A vulnerability was found in PostgreSQL versions 11.x up to excluding 11.3, 10.x up to excluding 10.8, 9.6.x up to, excluding 9.6.13, 9.5.x up to, excluding 9.5.17. PostgreSQL maintains column statistics for tables. Certain statistics, such as histograms and lists of most common values, contain values taken from the column. PostgreSQL does not evaluate row security policies before consulting those statistics during query planning; an attacker can exploit this to read the most common values of certain columns. Affected columns are those for which the attacker has SELECT privilege and for which, in an ordinary query, row-level security prunes the set of rows visible to the attacker.
What to do
Fixed builds are available from Alpine, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | postgresql-10 | Fixed | 10.8-0ubuntu0.18.04.1 | UBUNTU-CVE-2019-10130 |
| Ubuntu 16.04 | postgresql-9.5 | Fixed | 9.5.17-0ubuntu0.16.04.1 | UBUNTU-CVE-2019-10130 |
| Red Hat Enterprise Linux 8 | libpq | Not affected | ||
| Red Hat Enterprise Linux 8 | libpq-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql | Fixed | 0:10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:5619 |
| Red Hat Enterprise Linux 8 | postgresql-contrib | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:3669 |
| Red Hat Enterprise Linux 8 | postgresql-docs | Fixed | 0:10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:5619 |
| Red Hat Enterprise Linux 8 | postgresql-plperl | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:3669 |
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Fixed | 0:10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:5619 |
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:3669 |
| Red Hat Enterprise Linux 8 | postgresql-server | Fixed | 0:10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:5619 |
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:3669 |
| Red Hat Enterprise Linux 8 | postgresql-static | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:3669 |
| Red Hat Enterprise Linux 8 | postgresql-test | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:3669 |
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Fixed | 0:10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:5619 |
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Fixed | 0:10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:3669 |
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Fixed | 0:10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:3669 |
| Red Hat Enterprise Linux 7 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-plpython | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-static | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-plpython | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 5 | postgresql | Not affected | ||
| Alpine Linux 3.20 | postgresql14 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.20 | postgresql15 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.19 | postgresql14 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.19 | postgresql15 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.18 | postgresql14 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.18 | postgresql15 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.17 | postgresql14 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.17 | postgresql15 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.16 | postgresql14 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.15 | postgresql14 | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.14 | postgresql | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.13 | postgresql | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.12 | postgresql | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.11 | postgresql | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.10 | postgresql | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.9 | postgresql | Fixed | 11.3-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.8 | postgresql | Fixed | 10.8-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.7 | postgresql | Fixed | 10.8-r0 | ALPINE-CVE-2019-10130 |
| Alpine Linux 3.6 | postgresql | Fixed | 9.6.13-r0 | ALPINE-CVE-2019-10130 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PostgreSQL Project postgresql: affected: 11.x up to, excluding 11.3, 10.x up to, excluding 10.8, 9.6.x up to, excluding 9.6.13, 9.5.x up to, excluding 9.5.17
Vendor advisories:
- https://security.gentoo.org/glsa/202003-03 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html (vendor-advisory)
References
- https://www.postgresql.org/about/news/1939/
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10130
- https://security.gentoo.org/glsa/202003-03
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.