cve.bz

CVE-2021-3393

4.3 mediumEPSS 1.2%

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

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

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.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-209 Generation of Error Message Containing Sensitive Information
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
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-3393 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3393?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3393?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-3393 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:postgresqlbefore 11.11
postgresql:postgresqlfrom 12.0 before 12.6
postgresql:postgresqlfrom 13.0 before 13.2
redhat:enterprise_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu20.04:LTSpostgresql-1212.6-0ubuntu0.20.04.1UBUNTU-CVE-2021-3393 USN-4735-1
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-6.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hatrhel_eus:8.2::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-4.module+el8.2.0+9043+1dbb5661RHSA-2021:2389
Red Hatrhel_eus:8.2::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.2.0+9043+1dbb5661RHSA-2021:2389
Red Hatrhel_eus:8.2::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.7-1.module+el8.2.0+11251+7a3cc531RHSA-2021:2389
Red Hatrhel_software_collections:3::el7rh-postgresql12-postgresql, rh-postgresql12-postgresql-docs, rh-postgresql12-postgresql-libs and 12 more0:12.7-1.el7RHSA-2021:2394
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 morepostgresql1212.6-3.21.4SUSE-SU-2021:0695-1
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 Module for Basesystem 15 SP2, Linux Enterprise Module for Server Applications 15 SP2postgresql1212.6-8.16.1SUSE-SU-2021:0544-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1212.7-3.15.3SUSE-SU-2021:1783-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
openSUSELeap 15.2postgresql1212.6-lp152.3.16.1openSUSE-SU-2021:0423-1
openSUSETumbleweedpostgresql1111.13-1.3openSUSE-SU-2024:11185-1
openSUSETumbleweedpostgresql1212.8-1.3openSUSE-SU-2024:11186-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
openSUSETumbleweedpostgresql1818.7-1.1openSUSE-SU-2026:12654-1
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2021:2372
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2021:2372
Rocky Linux8pgaudit0:1.4.0-6.module+el8.4.0+587+d46efd10RLSA-2021:2372
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2021:2372
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:2372
Rocky Linux8postgresql0:12.7-1.module+el8.4.0+545+ca56da2eRLSA-2021:2372
Alpinev3.9, v3.10postgresql11.11-r0ALPINE-CVE-2021-3393
Alpinev3.11, v3.12postgresql12.6-r0ALPINE-CVE-2021-3393
Alpinev3.13, v3.14postgresql13.2-r0ALPINE-CVE-2021-3393
Alpinev3.15, v3.16postgresql13, postgresql1413.2-r0ALPINE-CVE-2021-3393
Alpinev3.17, v3.18, v3.19postgresql13, postgresql14, postgresql1513.2-r0ALPINE-CVE-2021-3393
Alpinev3.20postgresql14, postgresql1513.2-r0ALPINE-CVE-2021-3393

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8postgresql:12-8040020210604112312.522a0ee4Fixed 2021-06-10RHSA-2021:2372
Red Hat Enterprise Linux 8.2 Extended Update Supportpostgresql:12-8020020210602190140.4cda2c84Fixed 2021-06-14RHSA-2021:2389
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-postgresql12-postgresql-0:12.7-1.el7Fixed 2021-06-14RHSA-2021:2394
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-postgresql12-postgresql-0:12.7-1.el7Fixed 2021-06-14RHSA-2021:2394
Red Hat build of QuarkuspostgresqlNot affected
Red Hat Decision Manager 7postgresqlNot affected
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8postgresql:10/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

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-3393.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-54 Query System for Information Likelihood: High · Severity: Low
  • CAPEC-215 Fuzzing for application mapping Likelihood: High · Severity: Low
  • CAPEC-463 Padding Oracle Crypto Attack Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON