CVE-2021-3393 json
An information leak was discovered in postgresql in versions before 13.2, before 12.6 and before 11.11.
published 2021-04-01 5 y ago modified 2026-09-08 2 mo ago also BIT-postgresql-2021-3393 , EUVD-2021-26722 , JLSEC-2026-34
- cvss
- 4.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 11.11.0, 12.6.0, 13.2.0
- julia LibPQ_jll 14.1.0+0
- postgresql postgresql 11.11, 12.6, 13.2
- postgresql-13 Debian 11 13.2-1
debian advisories DEBIAN-CVE-2021-3393
- postgresql-12 Ubuntu 20.04 LTS 12.6-0ubuntu0.20.04.1
ubuntu advisories UBUNTU-CVE-2021-3393
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pgaudit RHEL 8 1.4.0-6.module+el8.4.0+11288+c193d6d7
- postgresql RHEL 8 12.7-1.module+el8.4.0+11288+c193d6d7
- postgresql-test RHEL 8 12.7-1.module+el8.4.0+11288+c193d6d7
- postgresql-pltcl RHEL 8 12.7-1.module+el8.4.0+11288+c193d6d7
- postgresql-plperl RHEL 8 12.7-1.module+el8.4.0+11288+c193d6d7
- postgresql-server RHEL 8 12.7-1.module+el8.4.0+11288+c193d6d7
- postgresql-contrib RHEL 8 12.7-1.module+el8.4.0+11288+c193d6d7
- postgresql-upgrade RHEL 8 12.7-1.module+el8.4.0+11288+c193d6d7
red hat advisories RHSA-2021:2389RHSA-2021:2372RHSA-2021:2394
- postgresql12 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 12.7-3.15.3
- postgresql12 SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +6 more 12.6-3.21.4
- postgresql13 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 13.2-3.6.1
- postgresql12 SLE Module for Server Applications 15 SP2, SLE Module for Basesystem 15 SP2 12.6-8.16.1
- postgresql13 SLE Module for Server Applications 15 SP2, SLE Module for Package Hub 15 SP2, SLE Module for Basesystem 15 SP2 13.2-5.6.1
suse advisories SUSE-SU-2021:1783-1SUSE-SU-2021:0695-1SUSE-SU-2021:0545-1SUSE-SU-2021:0544-1SUSE-SU-2021:0543-1
- postgresql17 openSUSE Tumbleweed 17.6-2.1
- postgresql16 openSUSE Tumbleweed 16.4-1.1
- postgresql11 openSUSE Tumbleweed 11.13-1.3
- postgresql12 openSUSE Tumbleweed 12.8-1.3
- postgresql13 openSUSE Tumbleweed 13.4-1.3
- postgresql14 openSUSE Tumbleweed 14.5-2.1
- postgresql15 openSUSE Tumbleweed 15.4-2.1
- postgresql12 openSUSE Leap 15.2 12.6-lp152.3.16.1
opensuse advisories openSUSE-SU-2025:15580-1openSUSE-SU-2024:14360-1openSUSE-SU-2024:11185-1openSUSE-SU-2024:11186-1openSUSE-SU-2024:11187-1openSUSE-SU-2024:12387-1
- postgres-decoderbufs AlmaLinux 8 0.10.0-2.module_el8.6.0+2760+1746ec94
- postgres-decoderbufs AlmaLinux 8 0.10.0-2.module_el8.6.0+2758+4f4474df
almalinux advisories ALSA-2021:2372
- pgaudit Rocky Linux 8 1.4.0-6.module+el8.4.0+587+d46efd10
- postgresql Rocky Linux 8 12.7-1.module+el8.4.0+545+ca56da2e
- postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.5.0+684+c3892ef9
- postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.4.0+424+71d47d9a
rocky linux advisories RLSA-2021:2372
- postgresql Alpine 3.10, Alpine 3.9 11.11-r0
- postgresql Alpine 3.12, Alpine 3.11 12.6-r0
- postgresql Alpine 3.14, Alpine 3.13 13.2-r0
- postgresql13 Alpine 3.19, Alpine 3.18, Alpine 3.17 +2 more 13.2-r0
- postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 13.2-r0
- postgresql15 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 13.2-r0
alpine advisories ALPINE-CVE-2021-3393
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql Arch Linux 13.2-1
arch linux advisories AVG-1567
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3393 updated cvss 3.1
postgresql: Partition constraint violation errors leak values of denied columns
-
Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.7-1.module+el8.4.0+11288+c193d6d7, postgresql-test 12.7-1.module+el8.4.0+11288+c193d6d7, postgresql-pltcl 12.7-1.module+el8.4.0+11288+c193d6d7, postgresql-plperl 12.7-1.module+el8.4.0+11288+c193d6d7, postgresql-server 12.7-1.module+el8.4.0+11288+c193d6d7, +5 morefixed: vendor fix RHSA-2021:2372
-
Red Hat Enterprise Linux AppStream EUS (v. 8.2) pgaudit 1.4.0-4.module+el8.2.0+9043+1dbb5661, postgresql 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql-test 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql-pltcl 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql-plperl 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql-server 12.7-1.module+el8.2.0+11251+7a3cc531, +5 morefixed: vendor fix RHSA-2021:2389
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql12-postgresql 12.7-1.el7, rh-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql12-postgresql-pltcl 12.7-1.el7, rh-postgresql12-postgresql-plperl 12.7-1.el7, rh-postgresql12-postgresql-server 12.7-1.el7, +5 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-postgresql12-postgresql 12.7-1.el7, rh-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql12-postgresql-pltcl 12.7-1.el7, rh-postgresql12-postgresql-plperl 12.7-1.el7, rh-postgresql12-postgresql-server 12.7-1.el7, +5 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql12-postgresql 12.7-1.el7, rh-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql12-postgresql-pltcl 12.7-1.el7, rh-postgresql12-postgresql-plperl 12.7-1.el7, rh-postgresql12-postgresql-server 12.7-1.el7, +5 morefixed: vendor fix RHSA-2021:2394
-
Red Hat build of Quarkus postgresql Red Hat Decision Manager 7 postgresql Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Enterprise Linux 8 libpq, pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, +8 more Red Hat Enterprise Linux 9 postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, postgresql-contrib, +4 morenot affected: vulnerable code not present
+5 more productsfewer
Red Hat Fuse 7 postgresql Red Hat JBoss Enterprise Application Platform 6 postgresql Red Hat JBoss Enterprise Application Platform 7 postgresql Red Hat Process Automation 7 postgresql Red Hat Software Collections rh-postgresql10-postgresql, rh-postgresql10-postgresql-libs, rh-postgresql10-postgresql-test, rh-postgresql10-postgresql-pltcl, rh-postgresql10-postgresql-plperl, rh-postgresql10-postgresql-server, +5 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.19% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
| OSV | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | <11.11.0 >=12.0.0, <12.6.0 >=13.0.0, <13.2.0 |
11.11.0 12.6.0 13.2.0 |
| julia | LibPQ_jll | <14.1.0+0 |
14.1.0+0 |
Affected products
- n/a postgresql
Classification
- Weakness
-
- CWE-209 Generation of Error Message Containing Sensitive Information
- Technology feeds
References
-
security.gentoo.org
/glsa/202105-32
vendor-advisory, third-party-advisory, advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=1924005
issue-tracking, third-party-advisory, advisory, web
-
security.netapp.com
/advisory/ntap-20210507-0006/
third-party-advisory, advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2021-3393
web
Sources
- CVE List CVE-2021-3393
- NVD CVE-2021-3393
- OSV BIT-postgresql-2021-3393
- OSV JLSEC-2026-34
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.