What’s Vulnerable › Vulnerabilities

CVE-2024-10979: PostgreSQL PL/Perl environment variable changes execute arbitrary code

Description

Incorrect control of environment variables in PostgreSQL PL/Perl allows an unprivileged database user to change sensitive process environment variables (e.g. PATH). That often suffices to enable arbitrary code execution, even if the attacker lacks a database server operating system user. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.

Affected products

How to fix

Upgrade to a fixed version: PostgreSQL 12.21, 13.17, 14.14, 15.9. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-10979 or the next vulnerability affects your stack