CVE-2021-20229 json
A flaw was found in PostgreSQL in versions before 13.2.
published 2021-02-23 5 y ago modified 2026-09-08 2 mo ago also BIT-postgresql-2021-20229 , EUVD-2021-7668
- cvss
- 4.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 13.2.0
- postgresql postgresql 13.2
- postgresql-13 Debian 11 13.2-1
debian advisories DEBIAN-CVE-2021-20229
- postgresql13 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 13.2-3.6.1
- postgresql13 SLE Module for Server Applications 15 SP2, SLE Module for Package Hub 15 SP2, SLE Module for Basesystem 15 SP2 13.2-5.6.1
suse advisories SUSE-SU-2021:0545-1SUSE-SU-2021:0543-1
- postgresql17 openSUSE Tumbleweed 17.6-2.1
- postgresql16 openSUSE Tumbleweed 16.4-1.1
- postgresql13 openSUSE Tumbleweed 13.4-1.3
- postgresql14 openSUSE Tumbleweed 14.5-2.1
- postgresql15 openSUSE Tumbleweed 15.4-2.1
opensuse advisories openSUSE-SU-2025:15580-1openSUSE-SU-2024:14360-1openSUSE-SU-2024:11187-1openSUSE-SU-2024:12387-1openSUSE-SU-2024:13243-1
- postgresql Alpine 3.12 12.6-r0
- postgresql Alpine 3.14, Alpine 3.13 13.2-r0
- postgresql13 Alpine 3.19, Alpine 3.18, Alpine 3.17 +2 more 13.2-r0
- postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 13.2-r0
- postgresql15 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 13.2-r0
alpine advisories ALPINE-CVE-2021-20229
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql Arch Linux 13.2-1
arch linux advisories AVG-1567
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-2021-20229 updated cvss 3.1
postgresql: single-column SELECT privilege enables reading all columns
-
Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 moreaffected: no fix available “Fix deferred”
-
Red Hat build of Quarkus postgresql Red Hat Decision Manager 7 postgresql Red Hat Enterprise Linux 8 libpq, pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, +8 more Red Hat Enterprise Linux 9 postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, postgresql-contrib, +4 more Red Hat Fuse 7 postgresql Red Hat JBoss Enterprise Application Platform 6 postgresqlnot affected: vulnerable code not present
+3 more productsfewer
Red Hat JBoss Enterprise Application Platform 7 postgresql Red Hat Process Automation 7 postgresql Red Hat Software Collections rh-postgresql10-postgresql, rh-postgresql12-postgresql, rh-postgresql10-postgresql-libs, rh-postgresql10-postgresql-test, rh-postgresql12-postgresql-libs, rh-postgresql12-postgresql-test, +16 more
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
1.47% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
| OSV | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | >=13.0.0, <13.2.0 |
13.2.0 |
Affected products
- n/a PostgreSQL
Classification
- Weakness
-
- CWE-863 Incorrect Authorization
- Technology feeds
References
-
security.gentoo.org
/glsa/202105-32
vendor-advisory, third-party-advisory, advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1925296
issue-tracking, third-party-advisory, advisory
-
security.netapp.com
/advisory/ntap-20210326-0005/
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-20229
web
Sources
- CVE List CVE-2021-20229
- NVD CVE-2021-20229
- OSV BIT-postgresql-2021-20229
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.