CVE-2021-32028
PostgreSQL vulnerability analysis and mitigation

Overview

CVE-2021-32028 is a security vulnerability discovered in PostgreSQL that was disclosed on May 13, 2021. The vulnerability affects PostgreSQL versions 9.6.0 through 9.6.22, 10.0 through 10.17, 11.0 through 11.12, 12.0 through 12.7, and 13.0 through 13.3. This flaw allows an authenticated database user to read arbitrary bytes of server memory using a specially crafted INSERT ... ON CONFLICT ... DO UPDATE command (PostgreSQL Security).

Technical details

The vulnerability exists in PostgreSQL's handling of INSERT ... ON CONFLICT ... DO UPDATE commands. When executed on a purpose-crafted table, this command can be manipulated to read arbitrary bytes of server memory. The vulnerability has been assigned a CVSS v3.1 score of 6.5 (Medium), with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, indicating network accessibility, low attack complexity, and high impact on confidentiality (NetApp Advisory).

Impact

The primary impact of this vulnerability is on data confidentiality. When successfully exploited, an attacker can read arbitrary bytes of server memory, potentially exposing sensitive information stored in the database server's memory. In the default configuration, any authenticated database user can create the prerequisite objects and execute this attack (PostgreSQL Security).

Mitigation and workarounds

The vulnerability has been fixed in PostgreSQL versions 13.3, 12.7, 11.12, 10.17, and 9.6.22. Users are strongly advised to upgrade to these or later versions to protect against this vulnerability. The fix was released on May 13, 2021 (PostgreSQL Security).

Additional resources


SourceThis report was generated using AI

Related PostgreSQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-8715HIGH8.8
  • PostgreSQLPostgreSQL
  • postgresql17-server-debuginfo
NoYesAug 14, 2025
CVE-2025-8714HIGH8.8
  • PostgreSQLPostgreSQL
  • postgresql15-debuginfo
NoYesAug 14, 2025
CVE-2025-12818MEDIUM5.9
  • PostgreSQLPostgreSQL
  • postgresql-server
NoYesNov 13, 2025
CVE-2025-12817LOW3.1
  • PostgreSQLPostgreSQL
  • postgresql:16::pgaudit
NoYesNov 13, 2025
CVE-2025-8713LOW3.1
  • PostgreSQLPostgreSQL
  • postgresql-server
NoYesAug 14, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management