CVE-2021-3677
PostgreSQL vulnerability analysis and mitigation

Overview

CVE-2021-3677 is a vulnerability in PostgreSQL that allows memory disclosure through purpose-crafted queries. The vulnerability affects PostgreSQL versions 11.0 prior to 11.13, 12.0 prior to 12.8, and 13.0 prior to 13.4. This security flaw was disclosed on August 12, 2021, and affects the core server component of PostgreSQL (PostgreSQL Security).

Technical details

The vulnerability allows a purpose-crafted query to read arbitrary bytes of server memory. The attack can be executed by any authenticated database user in the default configuration and does not require the ability to create objects. The vulnerability has a CVSS 3.0 base score of 6.5 (Medium), with a vector of AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. If server settings include maxworkerprocesses=0, the known versions of this attack are infeasible, though undiscovered variants may not be affected by this setting (PostgreSQL Security).

Impact

Successful exploitation of this vulnerability could lead to the disclosure of sensitive information from server memory. Any authenticated database user can potentially execute this attack in default configurations, making it a significant security concern for PostgreSQL deployments (NetApp Security).

Mitigation and workarounds

The vulnerability has been fixed in PostgreSQL versions 13.4, 12.8, and 11.13. Users should upgrade to these or later versions to address the security issue. While setting maxworkerprocesses=0 may prevent known versions of this attack, it is not recommended as a permanent solution since undiscovered variants may not be affected by this setting (PostgreSQL Security, Red Hat Security).

Additional resources


SourceThis report was generated using AI

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