cve.bz

CVE-2024-10979 postgresql postgresql

8.8 highExploit referenceEPSS 4.4%

High (8.8) in postgresql postgresql. EPSS 4.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
4.4% (unchanged from 4.4% a week ago; 4.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-11-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-610 Externally Controlled Reference to a Resource in Another Sphere
CWE-15 External Control of System or Configuration Setting
OWASP Top 10
A02:2025 Security Misconfiguration, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-10979 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-10979?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-10979?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-10979 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 12.0 before 12.21
postgresql:postgresqlfrom 13.0 before 13.17
postgresql:postgresqlfrom 14.0 before 14.14
postgresql:postgresqlfrom 15.0 before 15.9
postgresql:postgresqlfrom 16.0 before 16.5
postgresql:postgresqlfrom 17.0 before 17.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11postgresql-1313.17-0+deb11u1DLA-3954-1
Debian12postgresql-1515.9-0+deb12u1DEBIAN-CVE-2024-10979 DSA-5812-1
Debian13postgresql-1717.1-1DEBIAN-CVE-2024-10979
Ubuntu20.04:LTSpostgresql-1212.22-0ubuntu0.20.04.1UBUNTU-CVE-2024-10979 USN-7132-1
Ubuntu22.04:LTSpostgresql-1414.15-0ubuntu0.22.04.1UBUNTU-CVE-2024-10979 USN-7132-1
Ubuntu24.04:LTSpostgresql-1616.6-0ubuntu0.24.04.1UBUNTU-CVE-2024-10979 USN-7132-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2024-10979
UbuntuPro:16.04:LTSpostgresql-9.59.5.25-0ubuntu0.16.04.1+esm10UBUNTU-CVE-2024-10979 USN-7358-1
UbuntuPro:18.04:LTSpostgresql-10no fix listedUBUNTU-CVE-2024-10979
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.9.0+19330+c97ddbdfRHSA-2024:10785
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.9.0+20664+9c30cf7fRHSA-2024:10832
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2024:10830
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.1-1.module+el8.10.0+22551+c0330dc9RHSA-2024:10831
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-7.module+el8.10.0+22214+9beb89d6RHSA-2024:10785
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.9.0+20664+9c30cf7fRHSA-2024:10832
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.9.0+19797+c4ce5969RHSA-2024:10830
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:16.0-1.module+el8.10.0+20413+d8116364RHSA-2024:10831
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.9.0+19330+c97ddbdfRHSA-2024:10785
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.9.0+20664+9c30cf7fRHSA-2024:10832
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2024:10830
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:2.4.0-1.Final.module+el8.10.0+20413+d8116364RHSA-2024:10831
62 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 12 morepostgresql1414.15-150200.5.50.1SUSE-SU-2024:4176-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 8 morepostgresql1313.18-150200.5.64.1SUSE-SU-2024:4175-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morepostgresql1212.22-150200.8.66.1SUSE-SU-2024:4099-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 morepostgresql1616.6-150200.5.21.1SUSE-SU-2024:4173-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 morepostgresql1717.2-150200.5.5.1SUSE-SU-2024:4173-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 morepostgresql1515.10-150200.5.33.1SUSE-SU-2024:4174-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morepostgresql17-150300.10.27.1SUSE-SU-2024:4173-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2postgresql17-150200.4.30.1SUSE-SU-2024:4173-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 morepostgresql17-150400.4.18.1SUSE-SU-2024:4173-1
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Legacy 15 SP5, Linux Enterprise Module for Package Hub 15 SP5 and 1 morepostgresql17-150500.10.9.1SUSE-SU-2024:4173-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Server Applications 15 SP6postgresql17-150600.17.6.1SUSE-SU-2024:4063-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Server Applications 15 SP6postgresql1616.6-150600.16.10.1SUSE-SU-2024:4063-1
10 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5postgresql17-150500.10.9.1SUSE-SU-2024:4173-1
openSUSELeap 15.5postgresql1414.15-150200.5.50.1SUSE-SU-2024:4176-1
openSUSELeap 15.5postgresql1515.10-150200.5.33.1SUSE-SU-2024:4174-1
openSUSELeap 15.5postgresql1616.6-150200.5.21.1SUSE-SU-2024:4173-1
openSUSELeap 15.5postgresql1717.2-150200.5.5.1SUSE-SU-2024:4173-1
openSUSELeap 15.5, Leap 15.6postgresql1212.22-150200.8.66.1SUSE-SU-2024:4099-1
openSUSELeap 15.5, Leap 15.6postgresql1313.18-150200.5.64.1SUSE-SU-2024:4175-1
openSUSELeap 15.6postgresql17-150600.17.6.1SUSE-SU-2024:4063-1
openSUSELeap 15.6postgresql1414.15-150600.16.9.1SUSE-SU-2024:4118-1
openSUSELeap 15.6postgresql1515.10-150600.16.9.1SUSE-SU-2024:4098-1
openSUSELeap 15.6postgresql1616.6-150600.16.10.1SUSE-SU-2024:4063-1
openSUSELeap 15.6postgresql1717.2-150600.13.5.1SUSE-SU-2024:4063-1
7 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2024:10785 ALSA-2024:10832
AlmaLinux8pg_repack1.4.6-3.module_el8.9.0+3704+f1f917ceALSA-2024:10785 ALSA-2024:10832
AlmaLinux8pg_repack1.4.8-1.module_el8.10.0+3798+606ebb9fALSA-2024:10830
AlmaLinux8pg_repack1.4.8-1.module_el8.9.0+3706+885c732eALSA-2024:10830
AlmaLinux8pg_repack1.5.1-1.module_el8.10.0+3930+ecf33554ALSA-2024:10831
AlmaLinux8pgaudit1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1ALSA-2024:10785
AlmaLinux8pgaudit1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1ALSA-2024:10785
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2024:10832
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+3095+ee60d910ALSA-2024:10832
AlmaLinux8pgaudit1.7.0-1.module_el8.9.0+3706+885c732eALSA-2024:10830
AlmaLinux8pgaudit16.0-1.module_el8.10.0+3798+606ebb9fALSA-2024:10831
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2024:10785 ALSA-2024:10832
20 more for AlmaLinux in the JSON.
Rocky Linux8pg_repack0:1.4.6-3.module+el8.10.0+1862+29bef648RLSA-2024:10785
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2024:10830
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+1900+d7340343RLSA-2024:10831
Rocky Linux8pgaudit0:1.4.0-7.module+el8.9.0+1735+a332307bRLSA-2024:10785
Rocky Linux8pgaudit0:1.7.0-1.module+el8.9.0+1525+fc91df60RLSA-2024:10830
Rocky Linux8pgaudit0:16.0-1.module+el8.10.0+1622+bd25b19cRLSA-2024:10831
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.10.0+1862+29bef648RLSA-2024:10785
Rocky Linux8postgres-decoderbufs0:1.9.7-1.Final.module+el8.9.0+1525+fc91df60RLSA-2024:10830
Rocky Linux8postgres-decoderbufs0:2.4.0-1.Final.module+el8.10.0+1622+bd25b19cRLSA-2024:10831
Rocky Linux8postgresql0:12.22-1.module+el8.10.0+1897+c7883fdeRLSA-2024:10785
Rocky Linux8postgresql0:15.10-1.module+el8.10.0+1899+05bbdd2cRLSA-2024:10830
Rocky Linux8postgresql0:16.6-1.module+el8.10.0+1900+d7340343RLSA-2024:10831
7 more for Rocky Linux in the JSON.
Alpinev3.17, v3.18, v3.19postgresql1313.17-r0ALPINE-CVE-2024-10979
Alpinev3.17, v3.18, v3.19 and 1 morepostgresql1414.14-r0ALPINE-CVE-2024-10979
Alpinev3.17, v3.18, v3.19 and 3 morepostgresql1515.9-r0ALPINE-CVE-2024-10979
Alpinev3.19, v3.20, v3.21 and 3 morepostgresql1616.5-r0ALPINE-CVE-2024-10979
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.1-r0ALPINE-CVE-2024-10979
Azure Linux2postgresql14.14-1AZL-53198
Azure Linux3postgresql16.5-1AZL-53212
Alpaquita23postgresql1515.9-r0BELL-CVE-2024-10979
Alpaquitastreampostgresql1717.1-r0BELL-CVE-2024-10979

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability has been given a severity rating of important because the ability to modify sensitive process environment variables (ex. PATH) can lead to unauthorized code execution and privilege escalation. Depending on the privileges of the PostgreSQL user, an attacker may be able to gain higher-level access to the underlying server and create functions who modify environment variables and execute arbitrary commands.

Red Hat's mitigation

Currently the following options exist to help mitigate the impact of this vulnerability:

1) Restrict Permissions: the creation of PL/Python and PL/Perl functions should be limited to trusted users only.

2) Environment Variable Sanitization: ensure that environment variables are properly sanitized and any modifications are restricted.

3) Upgrade PostgreSQL: if a fix is released by the PostgreSQL Global Development Group, update to the latest version.

4) Audit Database Functions: perform regular audits on user-created functions to detect and prevent potential exploitation.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpostgresql-0:9.2.24-9.el7_9.2Fixed 2024-12-09RHSA-2024:10882
Red Hat Enterprise Linux 8postgresql:12-8100020241122084405.489197e6Fixed 2024-12-04RHSA-2024:10785
Red Hat Enterprise Linux 8postgresql:15-8100020241122084744.489197e6Fixed 2024-12-05RHSA-2024:10830
Red Hat Enterprise Linux 8postgresql:16-8100020241122085009.489197e6Fixed 2024-12-05RHSA-2024:10831
Red Hat Enterprise Linux 8postgresql:13-8100020241122084628.489197e6Fixed 2024-12-05RHSA-2024:10832
Red Hat Enterprise Linux 8.2 Advanced Update Supportpostgresql:12-8020020241126122642.4cda2c84Fixed 2024-12-03RHSA-2024:10739
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:12-8040020241129070850.522a0ee4Fixed 2024-12-04RHSA-2024:10789
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:13-8040020241127111253.522a0ee4Fixed 2024-12-05RHSA-2024:10846
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicepostgresql:12-8040020241129070850.522a0ee4Fixed 2024-12-04RHSA-2024:10789
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicepostgresql:13-8040020241127111253.522a0ee4Fixed 2024-12-05RHSA-2024:10846
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionspostgresql:12-8040020241129070850.522a0ee4Fixed 2024-12-04RHSA-2024:10789
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionspostgresql:13-8040020241127111253.522a0ee4Fixed 2024-12-05RHSA-2024:10846
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpostgresql:13-8060020241128071428.ad008a3aFixed 2024-12-02RHSA-2024:10677
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpostgresql:12-8060020241128124027.ad008a3aFixed 2024-12-02RHSA-2024:10705
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepostgresql:13-8060020241128071428.ad008a3aFixed 2024-12-02RHSA-2024:10677
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepostgresql:12-8060020241128124027.ad008a3aFixed 2024-12-02RHSA-2024:10705
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspostgresql:13-8060020241128071428.ad008a3aFixed 2024-12-02RHSA-2024:10677
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspostgresql:12-8060020241128124027.ad008a3aFixed 2024-12-02RHSA-2024:10705
Red Hat Enterprise Linux 8.8 Extended Update Supportpostgresql:12-8080020241128093923.63b34585Fixed 2024-12-03RHSA-2024:10750
Red Hat Enterprise Linux 6postgresqlOut of support scope
11 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-10979.

Attack patterns (CAPEC)

  • CAPEC-219 XML Routing Detour Attacks Likelihood: High · Severity: Medium
  • CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
  • CAPEC-69 Target Programs with Elevated Privileges Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-146 XML Schema Poisoning Likelihood: Low · Severity: High
  • CAPEC-176 Configuration/Environment Manipulation Severity: Medium
  • CAPEC-203 Manipulate Registry Information Severity: Medium
  • CAPEC-270 Modification of Registry Run Keys Likelihood: Medium · Severity: Medium
  • CAPEC-271 Schema Poisoning Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-15.

References

Check your stackJSON