CVE-2024-10979 json
PostgreSQL PL/Perl environment variable changes execute arbitrary code
published 2024-11-14 23 mo ago modified 2026-09-08 2 mo ago also BIT-postgresql-2024-10979 , EUVD-2024-33389 , JLSEC-2026-50
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.4%
- EPSS 4.4% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 13.17.0, 14.14.0, 15.9.0, 16.5.0, 17.1.0
- julia LibPQ_jll 16.8.0+0
- n/a PostgreSQL 12.21, 13.17, 14.14, 15.9, 16.5, 17.1
- postgresql postgresql 12.21, 13.17, 14.14, 15.9, 16.5, 17.1
- postgresql-15 Debian 12 15.9-0+deb12u1
- postgresql-17 Debian 13 17.1-1
debian advisories DEBIAN-CVE-2024-10979
- postgresql-12 Ubuntu 20.04 LTS 12.22-0ubuntu0.20.04.1
- postgresql-14 Ubuntu 22.04 LTS 14.15-0ubuntu0.22.04.1
- postgresql-16 Ubuntu 24.04 LTS 16.6-0ubuntu0.24.04.1
- postgresql-9.5 Ubuntu Pro 16.04 LTS 9.5.25-0ubuntu0.16.04.1+esm10
ubuntu advisories UBUNTU-CVE-2024-10979
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pgaudit RHEL 8 1.7.0-1.module+el8.9.0+19797+c4ce5969
- pg_repack RHEL 8 1.4.8-1.module+el8.9.0+19797+c4ce5969
- postgresql RHEL 8 15.10-1.module+el8.10.0+22550+22c7d5ca
- postgresql-test RHEL 8 15.10-1.module+el8.10.0+22550+22c7d5ca
- postgresql-pltcl RHEL 8 15.10-1.module+el8.10.0+22550+22c7d5ca
- postgresql-plperl RHEL 8 15.10-1.module+el8.10.0+22550+22c7d5ca
- postgresql-server RHEL 8 15.10-1.module+el8.10.0+22550+22c7d5ca
- postgresql-contrib RHEL 8 15.10-1.module+el8.10.0+22550+22c7d5ca
red hat advisories RHSA-2024:10882RHSA-2024:10879RHSA-2024:10846RHSA-2024:10851RHSA-2024:10830RHSA-2024:10831
- postgresql14 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +13 more 14.15-150200.5.50.1
- postgresql13 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +10 more 13.18-150200.5.64.1
- postgresql15 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +10 more 15.10-150200.5.33.1
- postgresql17 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +11 more 17.2-150200.5.5.1
- postgresql SLE Module for Server Applications 15 SP5, SLE Module for Package Hub 15 SP5, SLE Module for Legacy 15 SP5 +2 more 17-150500.10.9.1
- postgresql SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 17-150300.10.27.1
- postgresql SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 17-150400.4.18.1
- postgresql16 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +11 more 16.6-150200.5.21.1
suse advisories SUSE-SU-2025:01799-1SUSE-SU-2024:4176-1SUSE-SU-2024:4175-1SUSE-SU-2024:4174-1SUSE-SU-2024:4173-1SUSE-SU-2024:4118-1
- postgresql12 openSUSE Tumbleweed 12.21-1.1
- postgresql13 openSUSE Tumbleweed 13.17-1.1
- postgresql14 openSUSE Tumbleweed 14.14-1.1
- postgresql15 openSUSE Tumbleweed 15.9-1.1
- postgresql16 openSUSE Tumbleweed 16.5-1.1
- postgresql17 openSUSE Tumbleweed 17.1-1.1
opensuse advisories openSUSE-SU-2024:14501-1openSUSE-SU-2024:14502-1openSUSE-SU-2024:14503-1openSUSE-SU-2024:14504-1openSUSE-SU-2024:14505-1openSUSE-SU-2024:14506-1
- pgaudit AlmaLinux 8 1.7.0-1.module_el8.9.0+3706+885c732e
- pg_repack AlmaLinux 8 1.4.8-1.module_el8.9.0+3706+885c732e
- pg_repack AlmaLinux 8 1.4.8-1.module_el8.10.0+3798+606ebb9f
- postgresql AlmaLinux 8 15.10-1.module_el8.10.0+3929+38258aa5
- postgresql-test AlmaLinux 8 15.10-1.module_el8.10.0+3929+38258aa5
- postgresql-pltcl AlmaLinux 8 15.10-1.module_el8.10.0+3929+38258aa5
- postgresql-plperl AlmaLinux 8 15.10-1.module_el8.10.0+3929+38258aa5
- postgresql-server AlmaLinux 8 15.10-1.module_el8.10.0+3929+38258aa5
almalinux advisories ALSA-2024:10830ALSA-2024:10831ALSA-2024:10832ALSA-2024:10785ALSA-2024:10787ALSA-2024:10788
- pgaudit Rocky Linux 9 1.7.0-1.module+el9.5.0+30637+4391fcca
- pg_repack Rocky Linux 9 1.4.8-2.module+el9.5.0+30637+4391fcca
- postgres-decoderbufs Rocky Linux 9 1.9.7-1.Final.module+el9.5.0+30637+4391fcca
- pgaudit Rocky Linux 9 16.0-1.module+el9.5.0+30638+72f697e1
- pgvector Rocky Linux 9 0.6.2-1.module+el9.5.0+30638+72f697e1
- pg_repack Rocky Linux 9 1.5.1-1.module+el9.5.0+30638+72f697e1
- postgres-decoderbufs Rocky Linux 9 2.4.0-1.Final.module+el9.5.0+30638+72f697e1
- pgaudit Rocky Linux 8 1.4.0-7.module+el8.9.0+1735+a332307b
rocky linux advisories RLSA-2024:10787RLSA-2024:10788RLSA-2024:10785RLSA-2024:10830RLSA-2024:10831RLSA-2024:10832
- postgresql13 Alpine 3.19, Alpine 3.18, Alpine 3.17 13.17-r0
- postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 14.14-r0
- postgresql15 Alpine 3.22, Alpine 3.21, Alpine 3.20 +3 more 15.9-r0
- postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 16.5-r0
- postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.1-r0
alpine advisories ALPINE-CVE-2024-10979
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql CBL-Mariner 2.0 14.14-1
- postgresql Azure Linux 3.0 16.5-1
azure linux advisories AZL-53198AZL-53212
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-10979 updated cvss 8.8
postgresql: PostgreSQL PL/Perl environment variable changes execute arbitrary code
-
Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat CodeReady Linux Builder (v. 9) postgresql-test 13.18-1.el9_5, postgresql-test-rpm-macros 13.18-1.el9_5fixed: vendor fix RHSA-2024:10791
-
Red Hat CodeReady Linux Builder EUS (v.9.2) postgresql-test 13.18-1.el9_2fixed: vendor fix RHSA-2024:10879
-
Red Hat CodeReady Linux Builder EUS (v.9.4) postgresql-test 13.18-1.el9_4fixed: vendor fix RHSA-2024:10595
-
Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.5.0-1.module+el8.9.0+20664+9c30cf7f, pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969, pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pgaudit 1.4.0-7.module+el8.10.0+22214+9beb89d6, pg_repack 1.4.6-3.module+el8.9.0+19330+c97ddbdf, pg_repack 1.4.6-3.module+el8.9.0+20664+9c30cf7f, +44 morefixed: vendor fix RHSA-2024:10785
-
Red Hat Enterprise Linux AppStream (v. 9) postgresql 13.18-1.el9_5, postgresql-pltcl 13.18-1.el9_5, postgresql-plperl 13.18-1.el9_5, postgresql-server 13.18-1.el9_5, postgresql-contrib 13.18-1.el9_5, postgresql-upgrade 13.18-1.el9_5, +29 morefixed: vendor fix RHSA-2024:10787
-
Red Hat Enterprise Linux AppStream AUS (v. 8.2) pgaudit 1.4.0-4.module+el8.2.0+9043+1dbb5661, postgresql 12.22-1.module+el8.2.0+22565+6ef52370, postgresql-test 12.22-1.module+el8.2.0+22565+6ef52370, postgresql-pltcl 12.22-1.module+el8.2.0+22565+6ef52370, postgresql-plperl 12.22-1.module+el8.2.0+22565+6ef52370, postgresql-server 12.22-1.module+el8.2.0+22565+6ef52370, +5 morefixed: vendor fix RHSA-2024:10739
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+22583+29030e83, postgresql 13.18-1.module+el8.4.0+22569+f2b35d9d, postgresql-test 12.22-1.module+el8.4.0+22583+29030e83, postgresql-test 13.18-1.module+el8.4.0+22569+f2b35d9d, +16 morefixed: vendor fix RHSA-2024:10789
show 10 moreshow fewer
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+22577+1e38f377, postgresql 13.18-1.module+el8.6.0+22575+1d1430ad.1, +18 morefixed: vendor fix RHSA-2024:10705
-
Red Hat Enterprise Linux AppStream E4S (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+22583+29030e83, postgresql 13.18-1.module+el8.4.0+22569+f2b35d9d, postgresql-test 12.22-1.module+el8.4.0+22583+29030e83, postgresql-test 13.18-1.module+el8.4.0+22569+f2b35d9d, +16 morefixed: vendor fix RHSA-2024:10789
-
Red Hat Enterprise Linux AppStream E4S (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+22577+1e38f377, postgresql 13.18-1.module+el8.6.0+22575+1d1430ad.1, +18 morefixed: vendor fix RHSA-2024:10705
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) postgresql 13.18-1.el9_0, postgresql-pltcl 13.18-1.el9_0, postgresql-plperl 13.18-1.el9_0, postgresql-server 13.18-1.el9_0, postgresql-contrib 13.18-1.el9_0, postgresql-upgrade 13.18-1.el9_0, +2 morefixed: vendor fix RHSA-2024:10827
-
Red Hat Enterprise Linux AppStream EUS (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, +31 morefixed: vendor fix RHSA-2024:10750
-
Red Hat Enterprise Linux AppStream EUS (v.9.2) postgresql 13.18-1.el9_2, postgresql-pltcl 13.18-1.el9_2, postgresql-plperl 13.18-1.el9_2, postgresql-server 13.18-1.el9_2, postgresql-contrib 13.18-1.el9_2, postgresql-upgrade 13.18-1.el9_2, +15 morefixed: vendor fix RHSA-2024:10807
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) postgresql 13.18-1.el9_4, postgresql-pltcl 13.18-1.el9_4, postgresql-plperl 13.18-1.el9_4, postgresql-server 13.18-1.el9_4, postgresql-contrib 13.18-1.el9_4, postgresql-upgrade 13.18-1.el9_4, +28 morefixed: vendor fix RHSA-2024:10736
-
Red Hat Enterprise Linux AppStream TUS (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+22583+29030e83, postgresql 13.18-1.module+el8.4.0+22569+f2b35d9d, postgresql-test 12.22-1.module+el8.4.0+22583+29030e83, postgresql-test 13.18-1.module+el8.4.0+22569+f2b35d9d, +16 morefixed: vendor fix RHSA-2024:10789
-
Red Hat Enterprise Linux AppStream TUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+22577+1e38f377, postgresql 13.18-1.module+el8.6.0+22575+1d1430ad.1, +18 morefixed: vendor fix RHSA-2024:10705
-
Red Hat Enterprise Linux Server (v. 7 ELS) postgresql 9.2.24-9.el7_9.2, postgresql-libs 9.2.24-9.el7_9.2, postgresql-test 9.2.24-9.el7_9.2, postgresql-pltcl 9.2.24-9.el7_9.2, postgresql-plperl 9.2.24-9.el7_9.2, postgresql-server 9.2.24-9.el7_9.2, +2 more Red Hat Enterprise Linux Server Optional (v. 7 ELS) postgresql-upgrade 9.2.24-9.el7_9.2fixed: vendor fix RHSA-2024:10882
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 23 mo ago
Exploit prediction
4.39% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/fmora50591/postgresql-env-vuln/blob/main/README.md referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | <13.17.0 >=14.0.0, <14.14.0 >=15.0.0, <15.9.0 >=16.0.0, <16.5.0 >=17.0.0, <17.1.0 |
13.17.0 14.14.0 15.9.0 16.5.0 17.1.0 |
| julia | LibPQ_jll | <16.8.0+0 |
16.8.0+0 |
Affected products
- n/a PostgreSQL
- postgresql postgresql
Classification
- Weakness
- Technology feeds
References
-
github.com
/fmora50591/postgresql-env-vuln/blob/main/README.md
exploit, mitigation, third-party-advisory, advisory, web
-
postgresql.org
/support/security/CVE-2024-10979/
vendor-advisory, advisory, web
-
security.netapp.com
/advisory/ntap-20250110-0003/
third-party-advisory, advisory, web
-
lists.debian.org
/debian-lts-announce/2024/11/msg00011.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-10979
web
Sources
- CVE List CVE-2024-10979
- NVD CVE-2024-10979
- OSV BIT-postgresql-2024-10979
- OSV JLSEC-2026-50
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.