Vulnerability in PostgreSQL
CVE-2024-10979
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.044, 91.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PostgreSQL
- PostgreSQL — versions 17, 16, 15
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 7 other repositories (adegoodyer/kubernetes-admin-toolkit, atsukish/pydanticai-tutrial, fkie-cad/nvd-json-data-feeds, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.postgresql.org/support/security/CVE-2024-10979/ (Vendor Advisory)
- github.com/fmora50591/postgresql-env-vuln/blob/main/README.md (Exploit, Mitigation, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2024/11/msg00011.html
- security.netapp.com/advisory/ntap-20250110-0003/ (Third Party Advisory)