cve.bz

CVE-2021-20229 Incorrect Authorization

4.3 mediumEPSS 1.5%

Medium (4.3). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20229 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20229?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20229?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20229 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 13.0 before 13.2
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
fedoraproject:fedora33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11postgresql-1313.2-1DEBIAN-CVE-2021-20229
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Package Hub 15 SP2, Linux Enterprise Module for Server Applications 15 SP2postgresql1313.2-5.6.1SUSE-SU-2021:0543-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1313.2-3.6.1SUSE-SU-2021:0545-1
openSUSETumbleweedpostgresql1313.4-1.3openSUSE-SU-2024:11187-1
openSUSETumbleweedpostgresql1414.5-2.1openSUSE-SU-2024:12387-1
openSUSETumbleweedpostgresql1515.4-2.1openSUSE-SU-2024:13243-1
openSUSETumbleweedpostgresql1616.4-1.1openSUSE-SU-2024:14360-1
openSUSETumbleweedpostgresql1717.6-2.1openSUSE-SU-2025:15580-1
Alpinev3.12postgresql12.6-r0ALPINE-CVE-2021-20229
Alpinev3.13, v3.14postgresql13.2-r0ALPINE-CVE-2021-20229
Alpinev3.15, v3.16postgresql13, postgresql1413.2-r0ALPINE-CVE-2021-20229
Alpinev3.17, v3.18, v3.19postgresql13, postgresql14, postgresql1513.2-r0ALPINE-CVE-2021-20229
Alpinev3.20postgresql14, postgresql1513.2-r0ALPINE-CVE-2021-20229

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat build of QuarkuspostgresqlNot affected
Red Hat Decision Manager 7postgresqlNot affected
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlFix deferred
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8postgresql:10/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:12/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:9.6/postgresqlNot affected
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Fuse 7postgresqlNot affected
Red Hat JBoss Enterprise Application Platform 6postgresqlNot affected
Red Hat JBoss Enterprise Application Platform 7postgresqlNot affected
Red Hat Process Automation 7postgresqlNot affected
Red Hat Software Collectionsrh-postgresql10-postgresqlNot affected
Red Hat Software Collectionsrh-postgresql12-postgresqlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20229.

References

Check your stackJSON