CVSS 3.1
8.8 highCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (8.8) in postgresql postgresql. EPSS 4.4% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExplain 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| postgresql:postgresql | from 12.0 before 12.21 |
| postgresql:postgresql | from 13.0 before 13.17 |
| postgresql:postgresql | from 14.0 before 14.14 |
| postgresql:postgresql | from 15.0 before 15.9 |
| postgresql:postgresql | from 16.0 before 16.5 |
| postgresql:postgresql | from 17.0 before 17.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | postgresql-13 | 13.17-0+deb11u1 | DLA-3954-1 |
| Debian | 12 | postgresql-15 | 15.9-0+deb12u1 | DEBIAN-CVE-2024-10979 DSA-5812-1 |
| Debian | 13 | postgresql-17 | 17.1-1 | DEBIAN-CVE-2024-10979 |
| Ubuntu | 20.04:LTS | postgresql-12 | 12.22-0ubuntu0.20.04.1 | UBUNTU-CVE-2024-10979 USN-7132-1 |
| Ubuntu | 22.04:LTS | postgresql-14 | 14.15-0ubuntu0.22.04.1 | UBUNTU-CVE-2024-10979 USN-7132-1 |
| Ubuntu | 24.04:LTS | postgresql-16 | 16.6-0ubuntu0.24.04.1 | UBUNTU-CVE-2024-10979 USN-7132-1 |
| Ubuntu | Pro:14.04:LTS | postgresql-9.3 | no fix listed | UBUNTU-CVE-2024-10979 |
| Ubuntu | Pro:16.04:LTS | postgresql-9.5 | 9.5.25-0ubuntu0.16.04.1+esm10 | UBUNTU-CVE-2024-10979 USN-7358-1 |
| Ubuntu | Pro:18.04:LTS | postgresql-10 | no fix listed | UBUNTU-CVE-2024-10979 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.6-3.module+el8.9.0+19330+c97ddbdf | RHSA-2024:10785 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.6-3.module+el8.9.0+20664+9c30cf7f | RHSA-2024:10832 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.8-1.module+el8.9.0+19797+c4ce5969 | RHSA-2024:10830 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.5.1-1.module+el8.10.0+22551+c0330dc9 | RHSA-2024:10831 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.4.0-7.module+el8.10.0+22214+9beb89d6 | RHSA-2024:10785 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.5.0-1.module+el8.9.0+20664+9c30cf7f | RHSA-2024:10832 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.7.0-1.module+el8.9.0+19797+c4ce5969 | RHSA-2024:10830 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:16.0-1.module+el8.10.0+20413+d8116364 | RHSA-2024:10831 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:0.10.0-2.module+el8.9.0+19330+c97ddbdf | RHSA-2024:10785 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:0.10.0-2.module+el8.9.0+20664+9c30cf7f | RHSA-2024:10832 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969 | RHSA-2024:10830 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:2.4.0-1.Final.module+el8.10.0+20413+d8116364 | RHSA-2024:10831 |
| 62 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 12 more | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 8 more | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 more | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 more | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 more | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 more | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 more | postgresql | 17-150300.10.27.1 | SUSE-SU-2024:4173-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2 | postgresql | 17-150200.4.30.1 | SUSE-SU-2024:4173-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 more | postgresql | 17-150400.4.18.1 | SUSE-SU-2024:4173-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Legacy 15 SP5, Linux Enterprise Module for Package Hub 15 SP5 and 1 more | postgresql | 17-150500.10.9.1 | SUSE-SU-2024:4173-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Server Applications 15 SP6 | postgresql | 17-150600.17.6.1 | SUSE-SU-2024:4063-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Server Applications 15 SP6 | postgresql16 | 16.6-150600.16.10.1 | SUSE-SU-2024:4063-1 |
| 10 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.5 | postgresql | 17-150500.10.9.1 | SUSE-SU-2024:4173-1 |
| openSUSE | Leap 15.5 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| openSUSE | Leap 15.5 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| openSUSE | Leap 15.5 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| openSUSE | Leap 15.5 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| openSUSE | Leap 15.5, Leap 15.6 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| openSUSE | Leap 15.5, Leap 15.6 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| openSUSE | Leap 15.6 | postgresql | 17-150600.17.6.1 | SUSE-SU-2024:4063-1 |
| openSUSE | Leap 15.6 | postgresql14 | 14.15-150600.16.9.1 | SUSE-SU-2024:4118-1 |
| openSUSE | Leap 15.6 | postgresql15 | 15.10-150600.16.9.1 | SUSE-SU-2024:4098-1 |
| openSUSE | Leap 15.6 | postgresql16 | 16.6-150600.16.10.1 | SUSE-SU-2024:4063-1 |
| openSUSE | Leap 15.6 | postgresql17 | 17.2-150600.13.5.1 | SUSE-SU-2024:4063-1 |
| 7 more for openSUSE in the JSON and on openSUSE's page. | ||||
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2024:10785 ALSA-2024:10832 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2024:10785 ALSA-2024:10832 |
| AlmaLinux | 8 | pg_repack | 1.4.8-1.module_el8.10.0+3798+606ebb9f | ALSA-2024:10830 |
| AlmaLinux | 8 | pg_repack | 1.4.8-1.module_el8.9.0+3706+885c732e | ALSA-2024:10830 |
| AlmaLinux | 8 | pg_repack | 1.5.1-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | pgaudit | 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 | ALSA-2024:10785 |
| AlmaLinux | 8 | pgaudit | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:10785 |
| AlmaLinux | 8 | pgaudit | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2024:10832 |
| AlmaLinux | 8 | pgaudit | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2024:10832 |
| AlmaLinux | 8 | pgaudit | 1.7.0-1.module_el8.9.0+3706+885c732e | ALSA-2024:10830 |
| AlmaLinux | 8 | pgaudit | 16.0-1.module_el8.10.0+3798+606ebb9f | ALSA-2024:10831 |
| AlmaLinux | 8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2024:10785 ALSA-2024:10832 |
| 20 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.10.0+1862+29bef648 | RLSA-2024:10785 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1622+bd25b19c | RLSA-2024:10830 |
| Rocky Linux | 8 | pg_repack | 0:1.5.1-1.module+el8.10.0+1900+d7340343 | RLSA-2024:10831 |
| Rocky Linux | 8 | pgaudit | 0:1.4.0-7.module+el8.9.0+1735+a332307b | RLSA-2024:10785 |
| Rocky Linux | 8 | pgaudit | 0:1.7.0-1.module+el8.9.0+1525+fc91df60 | RLSA-2024:10830 |
| Rocky Linux | 8 | pgaudit | 0:16.0-1.module+el8.10.0+1622+bd25b19c | RLSA-2024:10831 |
| Rocky Linux | 8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.10.0+1862+29bef648 | RLSA-2024:10785 |
| Rocky Linux | 8 | postgres-decoderbufs | 0:1.9.7-1.Final.module+el8.9.0+1525+fc91df60 | RLSA-2024:10830 |
| Rocky Linux | 8 | postgres-decoderbufs | 0:2.4.0-1.Final.module+el8.10.0+1622+bd25b19c | RLSA-2024:10831 |
| Rocky Linux | 8 | postgresql | 0:12.22-1.module+el8.10.0+1897+c7883fde | RLSA-2024:10785 |
| Rocky Linux | 8 | postgresql | 0:15.10-1.module+el8.10.0+1899+05bbdd2c | RLSA-2024:10830 |
| Rocky Linux | 8 | postgresql | 0:16.6-1.module+el8.10.0+1900+d7340343 | RLSA-2024:10831 |
| 7 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.17, v3.18, v3.19 | postgresql13 | 13.17-r0 | ALPINE-CVE-2024-10979 |
| Alpine | v3.17, v3.18, v3.19 and 1 more | postgresql14 | 14.14-r0 | ALPINE-CVE-2024-10979 |
| Alpine | v3.17, v3.18, v3.19 and 3 more | postgresql15 | 15.9-r0 | ALPINE-CVE-2024-10979 |
| Alpine | v3.19, v3.20, v3.21 and 3 more | postgresql16 | 16.5-r0 | ALPINE-CVE-2024-10979 |
| Alpine | v3.21, v3.22, v3.23 and 1 more | postgresql17 | 17.1-r0 | ALPINE-CVE-2024-10979 |
| Azure Linux | 2 | postgresql | 14.14-1 | AZL-53198 |
| Azure Linux | 3 | postgresql | 16.5-1 | AZL-53212 |
| Alpaquita | 23 | postgresql15 | 15.9-r0 | BELL-CVE-2024-10979 |
| Alpaquita | stream | postgresql17 | 17.1-r0 | BELL-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 rates this Important.
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.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | postgresql-0:9.2.24-9.el7_9.2 | Fixed 2024-12-09 | RHSA-2024:10882 |
| Red Hat Enterprise Linux 8 | postgresql:12-8100020241122084405.489197e6 | Fixed 2024-12-04 | RHSA-2024:10785 |
| Red Hat Enterprise Linux 8 | postgresql:15-8100020241122084744.489197e6 | Fixed 2024-12-05 | RHSA-2024:10830 |
| Red Hat Enterprise Linux 8 | postgresql:16-8100020241122085009.489197e6 | Fixed 2024-12-05 | RHSA-2024:10831 |
| Red Hat Enterprise Linux 8 | postgresql:13-8100020241122084628.489197e6 | Fixed 2024-12-05 | RHSA-2024:10832 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | postgresql:12-8020020241126122642.4cda2c84 | Fixed 2024-12-03 | RHSA-2024:10739 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | postgresql:12-8040020241129070850.522a0ee4 | Fixed 2024-12-04 | RHSA-2024:10789 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | postgresql:13-8040020241127111253.522a0ee4 | Fixed 2024-12-05 | RHSA-2024:10846 |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | postgresql:12-8040020241129070850.522a0ee4 | Fixed 2024-12-04 | RHSA-2024:10789 |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | postgresql:13-8040020241127111253.522a0ee4 | Fixed 2024-12-05 | RHSA-2024:10846 |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | postgresql:12-8040020241129070850.522a0ee4 | Fixed 2024-12-04 | RHSA-2024:10789 |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | postgresql:13-8040020241127111253.522a0ee4 | Fixed 2024-12-05 | RHSA-2024:10846 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | postgresql:13-8060020241128071428.ad008a3a | Fixed 2024-12-02 | RHSA-2024:10677 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | postgresql:12-8060020241128124027.ad008a3a | Fixed 2024-12-02 | RHSA-2024:10705 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | postgresql:13-8060020241128071428.ad008a3a | Fixed 2024-12-02 | RHSA-2024:10677 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | postgresql:12-8060020241128124027.ad008a3a | Fixed 2024-12-02 | RHSA-2024:10705 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | postgresql:13-8060020241128071428.ad008a3a | Fixed 2024-12-02 | RHSA-2024:10677 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | postgresql:12-8060020241128124027.ad008a3a | Fixed 2024-12-02 | RHSA-2024:10705 |
| Red Hat Enterprise Linux 8.8 Extended Update Support | postgresql:12-8080020241128093923.63b34585 | Fixed 2024-12-03 | RHSA-2024:10750 |
| Red Hat Enterprise Linux 6 | postgresql | Out 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.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-15.