# CVE-2021-20229: A flaw was found in PostgreSQL in versions before 13.2.

- Severity: Medium 4.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.48%, higher than 74% of CVEs (2026-12-01)
- Published: 2021-02-23T17:40:53.000Z
- Modified: 2026-09-08T08:48:24.852Z
- Also known as: BIT-POSTGRESQL-2021-20229
- Weaknesses: CWE-863
- Assigned by: redhat

## Description

A flaw was found in PostgreSQL in versions before 13.2. This flaw allows a user with SELECT privilege on one column to craft a special query that returns all columns of the table. The highest threat from this vulnerability is to confidentiality.

(As written by CVE List.)

## Affected

- PostgreSQL: postgresql 13.2, postgresql 12.6, postgresql 11.11, postgresql 10.16, postgresql 9.6.21, postgresql 9.5.25
- postgresql postgresql: from 13.0 before 13.2
- redhat software_collections: no versions given
- redhat enterprise_linux: 7.0; 8.0
- fedoraproject fedora: 33
- postgresql (Bitnami): from 13.0.0 before 13.2.0

## Every score

- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1925296> (advisory, issue-tracking, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210326-0005/> (advisory, third-party-advisory)
- <https://security.gentoo.org/glsa/202105-32> (advisory, third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20229> (web)

## Sources

- CVE List: [CVE-2021-20229](https://www.cve.org/CVERecord?id=CVE-2021-20229), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20229](https://nvd.nist.gov/vuln/detail/CVE-2021-20229), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2021-20229](https://osv.dev/vulnerability/BIT-POSTGRESQL-2021-20229), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-20229 · Whole record: https://cve.day/CVE-2021-20229.json · Rebuilt by cve.day 2026-11-25T22:58:00.017Z
