CVE-2021-20229
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.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
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 |
|---|---|---|---|---|
| Red Hat Enterprise Linux 9 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-plpython3 | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-private-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-private-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-server-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-static | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-test-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-upgrade | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-upgrade-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libpq | Not affected | ||
| Red Hat Enterprise Linux 8 | libpq-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | pg_repack | Not affected | ||
| Red Hat Enterprise Linux 8 | pgaudit | Not affected | ||
| Red Hat Enterprise Linux 8 | postgres-decoderbufs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-private-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-private-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-static | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-plpython | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | postgresql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-contrib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plperl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plpython | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-pltcl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-test | Will not fix Out of support scope | ||
| Alpine Linux 3.20 | postgresql14 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.20 | postgresql15 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.19 | postgresql13 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.19 | postgresql14 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.19 | postgresql15 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.18 | postgresql13 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.18 | postgresql14 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.18 | postgresql15 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.17 | postgresql13 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.17 | postgresql14 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.17 | postgresql15 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.16 | postgresql13 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.16 | postgresql14 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.15 | postgresql13 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.15 | postgresql14 | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.14 | postgresql | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.13 | postgresql | Fixed | 13.2-r0 | ALPINE-CVE-2021-20229 |
| Alpine Linux 3.12 | postgresql | Fixed | 12.6-r0 | ALPINE-CVE-2021-20229 |
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: affected: postgresql 13.2, postgresql 12.6, postgresql 11.11, postgresql 10.16, postgresql 9.6.21, postgresql 9.5.25
Vendor advisories:
- https://security.gentoo.org/glsa/202105-32 (vendor-advisory)
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1925296
- https://security.netapp.com/advisory/ntap-20210326-0005/
- https://security.gentoo.org/glsa/202105-32
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.