PostgreSQL Releases Security Updates for All Supported Versions Addressing CVE-2024-10977
The PostgreSQL Global Development Group has released security updates to fix CVE-2024-10977, a critical flaw allowing unauthorized environment variable manipulation.

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.
Primary source
Open PostgreSQL Global Development Group ↗This article summarizes the source. Check the original for full details and conditions.
Comparison
| 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