PostgreSQL Releases Security Updates for All Supported Versions Addressing CVE-2024-10977

The PostgreSQL Global Development Group has announced the release of updates for all supported versions of the database system, including 17.1, 16.5, and 15.9. These updates primarily address CVE-2024-10977, a security vulnerability that allows an authenticated user to modify environment variables via certain PL functions. This flaw could lead to arbitrary code execution or sensitive information disclosure by bypassing intended security boundaries within the server process. The core of the fix involves tightening the restrictions on how session parameters and environment variables are handled during the execution of trusted and untrusted language functions. By preventing the modification of sensitive process-level variables, the developers have mitigated a significant vector for privilege escalation. This release is particularly crucial for users of PostgreSQL 12, as it marks the final scheduled update before the version reaches its end-of-life status. In addition to the security patches, the releases contain over 20 bug fixes addressing issues in the query planner and logical replication. Organizations are urged to apply these updates immediately to protect their data integrity and server security. The update process follows the standard minor version upgrade path, requiring a replacement of the executable binaries and a service restart.
Related tools
Recommended tools for this topic
These picks prioritize high-intent tools relevant to this topic. Some links may include partner or affiliate tracking.
A strong security and edge platform match across CDN, Zero Trust, and app protection.
View CloudflareA high-relevance security pick for identity, secret management, and team access control.
View 1PasswordStrong for identity, OIDC, and B2B auth readers evaluating implementation tradeoffs.
View Auth0Comparison
| Aspect | Before / Alternative | After / This |
|---|---|---|
| Environment Variable Control | Vulnerable to modification via specific PL functions | Strictly restricted to prevent unauthorized changes |
| CVE-2024-10977 Impact | Risk of arbitrary code execution and info leaks | Vulnerability patched across all supported versions |
| PostgreSQL 12 Support | Active maintenance ending soon | Final minor release; migration to newer version required |
Action Checklist
- Identify current PostgreSQL version Affects versions 12 through 17
- Schedule maintenance for binary replacement Standard minor upgrade requires a restart
- Update to the latest minor version E.g., update 17.0 to 17.1 or 16.4 to 16.5
- Plan migration for PostgreSQL 12 users This is the final update for version 12
Source: PostgreSQL Global Development Group
This page summarizes the original source. Check the source for full details.


