Authenticated server-memory disclosure via projection misplanning
Published Mar 2, 2022 · Updated Aug 3, 2024
Memory disclosure in PostgreSQL 11 through 13 allows remote authenticated users to read arbitrary server-memory bytes via a crafted query. Stacked ProjectionPath nodes cause the planner to reuse a child path with the wrong target list, producing an incorrect parallel-sort plan that returns bytes from unrelated memory. Any database login suffices under the default worker configuration; max_worker_processes set to zero blocks known query variants, and no object-creation privilege is required.
Summary
What happened
Memory disclosure in PostgreSQL 11 through 13 allows remote authenticated users to read arbitrary server-memory bytes via a crafted query. Stacked ProjectionPath nodes cause the planner to reuse a child path with the wrong target list, producing an incorrect parallel-sort plan that returns bytes from unrelated memory. Any database login suffices under the default worker configuration; max_worker_processes set to zero blocks known query variants, and no object-creation privilege is required.
The record
- CVE
- CVE-2021-3677
- Published
- Mar 2, 2022
- Updated
- Aug 3, 2024
- Vendor
- PostgreSQL Global Development Group
- Product
- PostgreSQL
- Classifications
- Unavailable
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 2, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=Fixedin v13.4, v12.8, v11.13
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
No sourced classifications are available.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo