CVE-2024-10979

PostgreSQL PL/Perl environment variable changes execute arbitrary code

HIGH
8.8
CVSS Score
Published: November 14, 2024 at 01:00 PM UTC
Updated: June 17, 2026 at 06:56 AM UTC
1 product affected across 1 vendorPostgreSQL

Using PostgreSQL by N/A?

Get instant alerts when new vulnerabilities affect PostgreSQL - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 4%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 12.2112.0 ≤ v < 12.2113 ≤ v < 13.1713.0 ≤ v < 13.1714 ≤ v < 14.1414.0 ≤ v < 14.1415 ≤ v < 15.915.0 ≤ v < 15.916 ≤ v < 16.516.0 ≤ v < 16.517 ≤ v < 17.117.0 ≤ v < 17.11314151617
Affected range stops below 12.21, so it looks safe — our inference, not a vendor statement
Affected range stops below 13.17, so it looks safe — our inference, not a vendor statement
Affected range stops below 14.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

Vendor Advisory
Source: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
https://www.postgresql.org/support/security/CVE-2024-10979/
ExploitMitigationThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://github.com/fmora50591/postgresql-env-vuln/blob/main/README.md
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://security.netapp.com/advisory/ntap-20250110-0003/
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.8HIGHPostgreSQL
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-15CWE-610

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card