PostgreSQL row security policy bypass via statistics
PostgreSQL Project postgresql
At a glance
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.
Source description · CVE List / CNA
System impact
CVSS summary v3.1
- Published:
- Updated:
- EPSS:
- 1.056%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Related CWE
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:PostgreSQL Project | postgresql | Affected versions:11.x up to, excluding 11.3Show full version range for postgresql10.x up to, excluding 10.89.6.x up to, excluding 9.6.139.5.x up to, excluding 9.5.17 |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream (v. 8) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream E4S (v. 8.0) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream EUS (v. 8.1) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream EUS (v. 8.2) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Software Collections | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) | Affected versions:Source does not specify a version range |
1–10 of 13 · Page 1 of 2
CVSS scores and metrics5
[email protected] · NVD (Primary)Primary4.3 / 10MediumCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:Nredhat · CVE List / CNA (cna)3.1 / 10LowCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N[email protected] · NVD (Secondary)3.1 / 10LowCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:NRed Hat · Red Hat VEX (adp)3.1 / 10LowCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N[email protected] · NVD (Primary)4.0 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Authentication
- Single
Source vector
AV:N/AC:L/Au:S/C:P/I:N/A:NCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences