CVEfocus › CVE database › CVE-2021-3393

CVE-2021-3393

EPSS 1.2% (higher than 68% of CVEs)Published 2021-04-01Updated 2024-08-03Assigner: redhat

An information leak was discovered in postgresql in versions before 13.2, before 12.6 and before 11.11. A user having UPDATE permission but not SELECT permission to a particular column could craft queries which, under some circumstances, might disclose values from that column in error messages. An attacker could use this flaw to obtain information stored in a column they are allowed to write but not read.

CWE-209

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu 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

41Fixed
1Fix pending
43Not 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
Ubuntu 20.04postgresql-12Fixed12.6-0ubuntu0.20.04.1UBUNTU-CVE-2021-3393
Ubuntu 16.04postgresql-9.5Not affected
vulnerable_code_not_present
Ubuntu 14.04postgresql-9.1Fix pending
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 8pgauditFixed0:1.4.0-6.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresqlFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-contribFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-docsFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-plperlFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-plpython3Fixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-pltclFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-private-develNot affected
Red Hat Enterprise Linux 8postgresql-private-libsNot affected
Red Hat Enterprise Linux 8postgresql-serverFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-server-develFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-staticFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-testFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-upgradeFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-upgrade-develFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 7postgresql-contribNot affected
Red Hat Enterprise Linux 7postgresql-develNot affected
Red Hat Enterprise Linux 7postgresql-docsNot affected
Red Hat Enterprise Linux 7postgresql-libsNot affected
Red Hat Enterprise Linux 7postgresql-plperlNot affected
Red Hat Enterprise Linux 7postgresql-plpythonNot affected
Red Hat Enterprise Linux 7postgresql-pltclNot affected
Red Hat Enterprise Linux 7postgresql-serverNot affected
Red Hat Enterprise Linux 7postgresql-staticNot affected
Red Hat Enterprise Linux 7postgresql-testNot affected
Red Hat Enterprise Linux 7postgresql-upgradeNot affected
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 6postgresql-contribNot affected
Red Hat Enterprise Linux 6postgresql-develNot affected
Red Hat Enterprise Linux 6postgresql-docsNot affected
Red Hat Enterprise Linux 6postgresql-libsNot affected
Red Hat Enterprise Linux 6postgresql-plperlNot affected
Red Hat Enterprise Linux 6postgresql-plpythonNot affected
Red Hat Enterprise Linux 6postgresql-pltclNot affected
Red Hat Enterprise Linux 6postgresql-serverNot affected
Red Hat Enterprise Linux 6postgresql-testNot affected
AlmaLinux 8postgres-decoderbufsFixed0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2021:2372
Rocky Linux 8pgauditFixed0:1.4.0-6.module+el8.4.0+587+d46efd10RLSA-2021:2372
Rocky Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:2372
Rocky Linux 8postgresqlFixed0:12.7-1.module+el8.4.0+545+ca56da2eRLSA-2021:2372
Alpine Linux 3.20postgresql14Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.20postgresql15Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.19postgresql13Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.19postgresql14Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.19postgresql15Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.18postgresql13Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.18postgresql14Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.18postgresql15Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.17postgresql13Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.17postgresql14Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.17postgresql15Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.16postgresql13Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.16postgresql14Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.15postgresql13Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.15postgresql14Fixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.14postgresqlFixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.13postgresqlFixed13.2-r0ALPINE-CVE-2021-3393
Alpine Linux 3.12postgresqlFixed12.6-r0ALPINE-CVE-2021-3393
Alpine Linux 3.11postgresqlFixed12.6-r0ALPINE-CVE-2021-3393
Alpine Linux 3.10postgresqlFixed11.11-r0ALPINE-CVE-2021-3393
Alpine Linux 3.9postgresqlFixed11.11-r0ALPINE-CVE-2021-3393

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.