CVEfocus › CVE database › CVE-2021-20229

CVE-2021-20229

CVSS 4.3 MediumEPSS 1.5% (higher than 74% of CVEs)Published 2021-02-23Updated 2024-08-03Assigner: redhat

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.

CWE-863

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

18Fixed
12Fix pending
10Will not fix
35Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Enterprise Linux 9postgresql-contribNot affected
Red Hat Enterprise Linux 9postgresql-docsNot affected
Red Hat Enterprise Linux 9postgresql-plperlNot affected
Red Hat Enterprise Linux 9postgresql-plpython3Not affected
Red Hat Enterprise Linux 9postgresql-pltclNot affected
Red Hat Enterprise Linux 9postgresql-private-develNot affected
Red Hat Enterprise Linux 9postgresql-private-libsNot affected
Red Hat Enterprise Linux 9postgresql-serverNot affected
Red Hat Enterprise Linux 9postgresql-server-develNot affected
Red Hat Enterprise Linux 9postgresql-staticNot affected
Red Hat Enterprise Linux 9postgresql-testNot affected
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosNot affected
Red Hat Enterprise Linux 9postgresql-upgradeNot affected
Red Hat Enterprise Linux 9postgresql-upgrade-develNot affected
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8libpq-develNot affected
Red Hat Enterprise Linux 8pg_repackNot affected
Red Hat Enterprise Linux 8pgauditNot affected
Red Hat Enterprise Linux 8postgres-decoderbufsNot affected
Red Hat Enterprise Linux 8postgresqlNot affected
Red Hat Enterprise Linux 8postgresql-contribNot affected
Red Hat Enterprise Linux 8postgresql-docsNot affected
Red Hat Enterprise Linux 8postgresql-plperlNot affected
Red Hat Enterprise Linux 8postgresql-plpython3Not affected
Red Hat Enterprise Linux 8postgresql-pltclNot affected
Red Hat Enterprise Linux 8postgresql-private-develNot affected
Red Hat Enterprise Linux 8postgresql-private-libsNot affected
Red Hat Enterprise Linux 8postgresql-serverNot affected
Red Hat Enterprise Linux 8postgresql-server-develNot affected
Red Hat Enterprise Linux 8postgresql-staticNot affected
Red Hat Enterprise Linux 8postgresql-testNot affected
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosNot affected
Red Hat Enterprise Linux 8postgresql-upgradeNot affected
Red Hat Enterprise Linux 8postgresql-upgrade-develNot affected
Red Hat Enterprise Linux 7postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-develFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-libsFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-plpythonFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
Alpine Linux 3.20postgresql14Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.20postgresql15Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.19postgresql13Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.19postgresql14Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.19postgresql15Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.18postgresql13Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.18postgresql14Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.18postgresql15Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.17postgresql13Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.17postgresql14Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.17postgresql15Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.16postgresql13Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.16postgresql14Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.15postgresql13Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.15postgresql14Fixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.14postgresqlFixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.13postgresqlFixed13.2-r0ALPINE-CVE-2021-20229
Alpine Linux 3.12postgresqlFixed12.6-r0ALPINE-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.

Vendor advisories:

References

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.