{"id":"CVE-2024-10979","published":"2024-11-14T13:00:08Z","modified":"2025-11-03T21:51:41Z","title":"PostgreSQL PL/Perl environment variable changes execute arbitrary code","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04393,"percentile":0.91534,"provenance":"source"},"cwes":[{"id":"CWE-15","name":"External Control of System or Configuration Setting"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2024-10979/","tags":[]},{"url":"https://github.com/fmora50591/postgresql-env-vuln/blob/main/README.md","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250110-0003/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html","tags":[]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":18.31},{"name":"CVSS severity","points":6.16}]},"affectedVersions":[{"vendor":"n/a","product":"PostgreSQL","versions":[">= 17, < 17.1",">= 16, < 16.5",">= 15, < 15.9",">= 14, < 14.14",">= 13, < 13.17","< 12.21"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-20T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is incorrect control of environment variables in PostgreSQL's PL/Perl procedural language, which lets changes to sensitive process variables such as PATH persist. An unprivileged database user with low-complexity network access and a valid account, requiring no user interaction, can use this to often achieve arbitrary code execution, even without holding a database server operating system account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:36:11Z"},"euvd":{"id":"EUVD-2024-33389","exploited":false,"provenance":"source"}}