Security restrictions bypass in PostgreSQL - CVE-2021-20229

 

Security restrictions bypass in PostgreSQL - CVE-2021-20229

Published: February 11, 2021


Vulnerability identifier: #VU50656
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-20229
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to gain access to sensitive information.

The vulnerability exists due to application does not properly impose security restrictions. A user having a SELECT privilege on an individual column can craft a special query that returns all columns of the table. Additionally, a stored view that uses column-level privileges will have incomplete column-usage bitmaps. In installations that depend on column-level permissions for security, it is recommended to execute CREATE OR REPLACE on all user-defined views to force them to be re-parsed.


Affected software

PostgreSQL
Arch Linux
Gentoo Linux
openEuler
postgresql (Alpine package)
postgresql-plperl
postgresql-static
postgresql-devel
postgresql-test-rpm-macros
postgresql-contrib
postgresql-pltcl
postgresql-server
postgresql-libs
postgresql-plpython3
postgresql-debugsource
postgresql-help
postgresql-debuginfo
postgresql-test
postgresql
Dell Security Management Server

How to mitigate CVE-2021-20229

Install updates from vendor's website.

PostgreSQL - update to 13.2
postgresql (Alpine package) - update to 13.2-r0
postgresql-plperl - update to 10.5-20
postgresql-static - update to 10.5-20
postgresql-devel - update to 10.5-20
postgresql-test-rpm-macros - update to 10.5-20
postgresql-contrib - update to 10.5-20
postgresql-pltcl - update to 10.5-20
postgresql-server - update to 10.5-20
postgresql-libs - update to 10.5-20
postgresql-plpython3 - update to 10.5-20
postgresql-debugsource - update to 10.5-20
postgresql-help - update to 10.5-20
postgresql-debuginfo - update to 10.5-20
postgresql-test - update to 10.5-20
postgresql - update to 10.5-20
Dell Security Management Server - update to 11.0.1

External References

Related Security Bulletins