CVE-2019-10130
published 2019-07-30CVE-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…
PriorityP422medium4.3CVSS 3.1
AVNACLPRLUINSUCLINAN
EPSS
1.08%
61.5th percentile
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.
Affected
21 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | postgresql-13 | < postgresql-13 13.22-0+deb11u1 (bullseye) | postgresql-13 13.22-0+deb11u1 (bullseye) |
| debian | postgresql-15 | < postgresql-13 13.22-0+deb11u1 (bullseye) | postgresql-13 13.22-0+deb11u1 (bullseye) |
| debian | postgresql-17 | < postgresql-13 13.22-0+deb11u1 (bullseye) | postgresql-13 13.22-0+deb11u1 (bullseye) |
| opensuse | leap | — | — |
| postgresql | postgresql | >= 0 < 11.3-r0 | 11.3-r0 |
| postgresql | postgresql | >= 0 < 11.3-r0 | 11.3-r0 |
| postgresql | postgresql | >= 0 < 11.3-r0 | 11.3-r0 |
| postgresql | postgresql | >= 0 < 11.3-r0 | 11.3-r0 |
| postgresql | postgresql | >= 0 < 11.3-r0 | 11.3-r0 |
| postgresql | postgresql | >= 0 < 9.6.13-r0 | 9.6.13-r0 |
| postgresql | postgresql | >= 0 < 10.8-r0 | 10.8-r0 |
| postgresql | postgresql | >= 0 < 10.8-r0 | 10.8-r0 |
| postgresql | postgresql | >= 0 < 11.3-r0 | 11.3-r0 |
| postgresql | postgresql | >= 10.0 < 10.8 | 10.8 |
| postgresql | postgresql | >= 11.0 < 11.3 | 11.3 |
| postgresql | postgresql | >= 9.5.0 < 9.5.17 | 9.5.17 |
| postgresql | postgresql | >= 9.6.0 < 9.6.13 | 9.6.13 |
| postgresql_project | postgresql | — | — |
| postgresql_project | postgresql | — | — |
| postgresql_project | postgresql | — | — |
| postgresql_project | postgresql | — | — |
CVSS provenance
nvdv3.14.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
nvdv3.03.1LOWCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
nvdv2.04.0MEDIUMAV:N/AC:L/Au:S/C:P/I:N/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu6.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
postgresql: PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table
vendor_redhat·2025-08-14·CVSS 7.5
CVE-2025-8713 [HIGH] CWE-1230 postgresql: PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table
postgresql: PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table
PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately, statistics allow a user to read sampled data that a row security policy intended to hide. PostgreSQL maintains statistics for tables by sampling data available in columns; this data is consulted during the query planning process. Prior to this release, a user could craft a leaky operator that bypassed view access control lists (ACLs) and bypassed row security policies in partitioning or table inheritance hierarchies. Reachable statistics data notably included histograms and most-common-values lists. CVE-2017-7484 and CVE-2019-10130 intended to close this class of
Debian
CVE-2025-8713: postgresql-13 - PostgreSQL optimizer statistics allow a user to read sampled data within a view ...
vendor_debian·2025·CVSS 7.5
CVE-2025-8713 [HIGH] CVE-2025-8713: postgresql-13 - PostgreSQL optimizer statistics allow a user to read sampled data within a view ...
PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately, statistics allow a user to read sampled data that a row security policy intended to hide. PostgreSQL maintains statistics for tables by sampling data available in columns; this data is consulted during the query planning process. Prior to this release, a user could craft a leaky operator that bypassed view access control lists (ACLs) and bypassed row security policies in partitioning or table inheritance hierarchies. Reachable statistics data notably included histograms and most-common-values lists. CVE-2017-7484 and CVE-2019-10130 intended to close this class of vulnerability, but this gap remained. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are aff
Ubuntu
PostgreSQL vulnerabilities
vendor_ubuntu·2019-05-13·CVSS 6.5
CVE-2019-10129 [MEDIUM] PostgreSQL vulnerabilities
Title: PostgreSQL vulnerabilities
Summary: Several security issues were fixed in PostgreSQL.
It was discovered that PostgreSQL incorrectly handled partition routing. A
remote user could possibly use this issue to read arbitrary bytes of server
memory. This issue only affected Ubuntu 19.04. (CVE-2019-10129)
Dean Rasheed discovered that PostgreSQL incorrectly handled selectivity
estimators. A remote attacker could possibly use this issue to bypass row
security policies. (CVE-2019-10130)
Instructions: This update uses a new upstream release, which includes additional bug
fixes. After a standard system update you need to restart PostgreSQL to
make all the necessary changes.
Red Hat
postgresql: Selectivity estimators bypass row security policies
vendor_redhat·2019-05-09·CVSS 4.3
CVE-2019-10130 [MEDIUM] CWE-284 postgresql: Selectivity estimators bypass row security policies
postgresql: Selectivity estimators bypass row security policies
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.
PostgreSQL maintains column statistics for t
OSV
CVE-2025-8713: PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access
osv·2025-08-14·CVSS 7.5
CVE-2025-8713 [HIGH] CVE-2025-8713: PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access
PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately, statistics allow a user to read sampled data that a row security policy intended to hide. PostgreSQL maintains statistics for tables by sampling data available in columns; this data is consulted during the query planning process. Prior to this release, a user could craft a leaky operator that bypassed view access control lists (ACLs) and bypassed row security policies in partitioning or table inheritance hierarchies. Reachable statistics data notably included histograms and most-common-values lists. CVE-2017-7484 and CVE-2019-10130 intended to close this class of vulnerability, but this gap remained. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are aff
GHSA
GHSA-cqj3-wjpm-fjvp: PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access
ghsa_unreviewed·2025-08-14·CVSS 7.5
CVE-2025-8713 [HIGH] CWE-1230 GHSA-cqj3-wjpm-fjvp: PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access
PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately, statistics allow a user to read sampled data that a row security policy intended to hide. PostgreSQL maintains statistics for tables by sampling data available in columns; this data is consulted during the query planning process. Prior to this release, a user could craft a leaky operator that bypassed view access control lists (ACLs) and bypassed row security policies in partitioning or table inheritance hierarchies. Reachable statistics data notably included histograms and most-common-values lists. CVE-2017-7484 and CVE-2019-10130 intended to close this class of vulnerability, but this gap remained. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are aff
GHSA
GHSA-5rxr-v694-cxfj: A vulnerability was found in PostgreSQL versions 11
ghsa_unreviewed·2022-05-24
CVE-2019-10130 [MEDIUM] CWE-284 GHSA-5rxr-v694-cxfj: A vulnerability was found in PostgreSQL versions 11
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.
OSV
CVE-2019-10130: A vulnerability was found in PostgreSQL versions 11
osv·2019-07-30·CVSS 4.3
CVE-2019-10130 [MEDIUM] CVE-2019-10130: A vulnerability was found in PostgreSQL versions 11
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.
OSV
postgresql-10, postgresql-11, postgresql-9.5 vulnerabilities
osv·2019-05-13·CVSS 6.5
CVE-2019-10129 [MEDIUM] postgresql-10, postgresql-11, postgresql-9.5 vulnerabilities
postgresql-10, postgresql-11, postgresql-9.5 vulnerabilities
It was discovered that PostgreSQL incorrectly handled partition routing. A
remote user could possibly use this issue to read arbitrary bytes of server
memory. This issue only affected Ubuntu 19.04. (CVE-2019-10129)
Dean Rasheed discovered that PostgreSQL incorrectly handled selectivity
estimators. A remote attacker could possibly use this issue to bypass row
security policies. (CVE-2019-10130)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-10130 mingw-postgresql: postgresql: Selectivity estimators bypass row security policies [fedora-all]
bugzilla·2019-05-13·CVSS 4.3
CVE-2019-10130 [MEDIUM] CVE-2019-10130 mingw-postgresql: postgresql: Selectivity estimators bypass row security policies [fedora-all]
CVE-2019-10130 mingw-postgresql: postgresql: Selectivity estimators bypass row security policies [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue aff
Bugzilla
CVE-2019-10130 postgresql: Selectivity estimators bypass row security policies [fedora-all]
bugzilla·2019-05-13·CVSS 4.3
CVE-2019-10130 [MEDIUM] CVE-2019-10130 postgresql: Selectivity estimators bypass row security policies [fedora-all]
CVE-2019-10130 postgresql: Selectivity estimators bypass row security policies [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supp
Bugzilla
CVE-2019-10130 postgresql: Selectivity estimators bypass row security policies
bugzilla·2019-05-06·CVSS 4.3
CVE-2019-10130 [MEDIUM] CVE-2019-10130 postgresql: Selectivity estimators bypass row security policies
CVE-2019-10130 postgresql: Selectivity estimators bypass row security policies
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.
Discussion:
Acknowledgments:
Name: Noah Misch, the PostgreSQL Project
Upstream: Dean Rasheed
---
Created mingw-postgresql tracking bugs for this issue:
Affects: fedora-all [bug 1709193]
C
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.htmlhttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10130https://security.gentoo.org/glsa/202003-03https://www.postgresql.org/about/news/1939/http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.htmlhttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10130https://security.gentoo.org/glsa/202003-03https://www.postgresql.org/about/news/1939/
2019-07-30
Published