CVE-2024-10979

PostgreSQL PL/Perl environment variable changes execute arbitrary code

Published Nov 14, 2024 CVSS 3.1 · 8.8 High EPSS 4.4% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3954-1 postgresql-13 security update
Debian DSA Debian DSA DSA-5812-1 postgresql-15 security update
EUVD EUVD EUVD-2024-33389 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.
Ubuntu USN Ubuntu USN USN-7132-1 PostgreSQL vulnerabilities
Ubuntu USN Ubuntu USN USN-7358-1 PostgreSQL vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.02932}

epss

{'score': 0.02469}

Type Values Removed Values Added
Weaknesses CWE-610
CPEs cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_e4s:9.0
cpe:/a:redhat:rhel_eus:9.2
Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_aus:8.4
cpe:/a:redhat:rhel_e4s:8.4
cpe:/a:redhat:rhel_tus:8.4
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
Vendors & Products Redhat enterprise Linux
Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_aus:8.2
cpe:/a:redhat:rhel_eus:8.8
Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_aus:8.2
Type Values Removed Values Added
First Time appeared Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Tus
CPEs cpe:/a:redhat:rhel_aus:8.2
cpe:/a:redhat:rhel_aus:8.6
cpe:/a:redhat:rhel_e4s:8.6
cpe:/a:redhat:rhel_tus:8.6
Vendors & Products Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Tus
Type Values Removed Values Added
First Time appeared Redhat
Redhat rhel Eus
CPEs cpe:/a:redhat:rhel_eus:9.4
Vendors & Products Redhat
Redhat rhel Eus
Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
CPEs cpe:2.3:a:postgresql:postgresql:-:*:*:*:*:*:*:*
Vendors & Products Postgresql
Postgresql postgresql
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title PostgreSQL PL/Perl environment variable changes execute arbitrary code
Weaknesses CWE-15
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-15

    External Control of System or Configuration Setting

  • CWE-610

    Externally Controlled Reference to a Resource in Another Sphere

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 3, 2025, 9:51 PM
Reserved
Nov 7, 2024, 7:27 PM
Status
Modified
Published
Nov 14, 2024, 1:15 PM
Modified
Jun 17, 2026, 6:56 AM
Severity
Important
Public date
Nov 14, 2024, 1:00 PM