Impact
Heap buffer overflow in PostgreSQL's PL/Perl interpreter arises when a tied hash is returned, allowing the function owner to execute arbitrary code as the operating system user running the database. The flaw is a classic buffer overflow (CWE-122) that can be triggered by a crafted function body, leading to remote code execution and full control over the database server.
Affected Systems
The vulnerability affects PostgreSQL, versions older than 18.5, 17.11, 16.15, 15.19, and 14.24. Users running any of those releases need to upgrade to the patched versions listed above or newer.
Risk and Exploitability
The CVSS score is 8.8, indicating a high severity, while no EPSS score is available, leaving the likelihood of exploitation uncertain. The vulnerability is not listed in the CISA KEV catalog. Attackers who can create or modify PL/Perl functions with a crafted body can exploit the buffer overflow, potentially running arbitrary code as the database server's operating system user.
OpenCVE Enrichment