Article Details
Scrape Timestamp (UTC): 2024-11-15 06:40:18.249
Source: https://thehackernews.com/2024/11/high-severity-flaw-in-postgresql-allows.html
Original Article Text
Click to Toggle View
High-Severity Flaw in PostgreSQL Allows Hackers to Exploit Environment Variables. Cybersecurity researchers have disclosed a high-severity security flaw in the PostgreSQL open-source database system that could allow unprivileged users to alter environment variables, and potentially lead to code execution or information disclosure. The vulnerability, tracked as CVE-2024-10979, carries a CVSS score of 8.8. Environment variables are user-defined values that can allow a program to dynamically fetch various kinds of information, such as access keys and software installation paths, during runtime without having to hard-code them. In certain operating systems, they are initialized during the startup phase. "Incorrect control of environment variables in PostgreSQL PL/Perl allows an unprivileged database user to change sensitive process environment variables (e.g., PATH)," PostgreSQL said in an advisory released Thursday. "That often suffices to enable arbitrary code execution, even if the attacker lacks a database server operating system user." The flaw has been addressed in PostgreSQL versions 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21. Varonis researchers, Tal Peleg and Coby Abrams, who discovered the issue, said it could lead to "severe security issues" depending on the attack scenario. This includes, but is not limited to, the execution of arbitrary code by modifying environment variables such as PATH, or extraction of valuable information on the machine by running malicious queries. Additional details of the vulnerability are currently being withheld to give users enough time to apply the fixes. Users are also advised to restrict allowed extensions. "For example, limiting CREATE EXTENSIONS permission grants to specific extensions and additionally setting the shared_preload_libraries configuration parameter to load only required extensions, limiting roles from creating functions per the principle of least privileges by restricting the CREATE FUNCTION permission," Varonis said.
Daily Brief Summary
A critical vulnerability has been identified in PostgreSQL, impacting its security by potentially allowing unauthorized code execution or data leakage.
The bug, registered as CVE-2024-10979, has a high threat level with a CVSS score of 8.8.
Hackers could manipulate environment variables like PATH to execute arbitrary code or access sensitive information, exploiting the PL/Perl environment within PostgreSQL.
PostgreSQL has mitigated this vulnerability in multiple versions, including 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21.
The discovery was made by researchers Tal Peleg and Coby Abrams from Varonis, who has detailed potential severe security implications.
PostgreSQL and security experts recommend restricting permissions and controlling extension loading to bolster system defenses against such vulnerabilities.
Details on the exact nature of the exploit remain undisclosed currently to allow users time for patch implementation.