CVEfocus › CVE database › CVE-2024-10979

CVE-2024-10979PostgreSQL PL/Perl environment variable changes execute arbitrary code

CVSS 8.8 HighEPSS 2.4% (higher than 84% of CVEs)Published 2024-11-14Updated 2025-11-03Assigner: PostgreSQL

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.

CWE-15

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

110Fixed
3Fix pending
10Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10postgresql-17Not affected
vulnerable_code_not_present
Ubuntu 24.04postgresql-16Fixed16.6-0ubuntu0.24.04.1UBUNTU-CVE-2024-10979
Ubuntu 22.04postgresql-14Fixed14.15-0ubuntu0.22.04.1UBUNTU-CVE-2024-10979
Ubuntu 20.04postgresql-12Fixed12.22-0ubuntu0.20.04.1UBUNTU-CVE-2024-10979
Ubuntu 18.04postgresql-10Fix pendingUBUNTU-CVE-2024-10979
Ubuntu 16.04postgresql-9.5Fix pending9.5.25-0ubuntu0.16.04.1+esm10 (Ubuntu Pro)UBUNTU-CVE-2024-10979
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2024-10979
Debian 13postgresql-17Fixed17.1-1DEBIAN-CVE-2024-10979
Debian 12postgresql-15Fixed15.9-0+deb12u1DEBIAN-CVE-2024-10979
Red Hat Enterprise Linux 9pg_repackFixed0:1.5.1-1.module+el9.5.0+22557+8cb08ba5RHSA-2024:10787
Red Hat Enterprise Linux 9pgauditFixed0:16.0-1.module+el9.4.0+20427+07482b8cRHSA-2024:10787
Red Hat Enterprise Linux 9pgvectorFixed0:0.6.2-1.module+el9.5.0+21770+ad2986efRHSA-2024:10788
Red Hat Enterprise Linux 9postgres-decoderbufsFixed0:1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60RHSA-2024:10788
Red Hat Enterprise Linux 9postgresqlFixed0:13.18-1.el9_5RHSA-2024:10788
Red Hat Enterprise Linux 9postgresql-contribFixed0:15.10-1.module+el9.5.0+22558+abb1a50bRHSA-2024:10791
Red Hat Enterprise Linux 9postgresql-docsFixed0:13.18-1.el9_5RHSA-2024:10788
Red Hat Enterprise Linux 9postgresql-plperlFixed0:16.6-1.module+el9.5.0+22557+8cb08ba5RHSA-2024:10791
Red Hat Enterprise Linux 9postgresql-plpython3Fixed0:13.18-1.el9_5RHSA-2024:10788
Red Hat Enterprise Linux 9postgresql-pltclFixed0:16.6-1.module+el9.5.0+22557+8cb08ba5RHSA-2024:10791
Red Hat Enterprise Linux 9postgresql-private-develFixed0:15.10-1.module+el9.5.0+22558+abb1a50bRHSA-2024:10788
Red Hat Enterprise Linux 9postgresql-private-libsFixed0:16.6-1.module+el9.5.0+22557+8cb08ba5RHSA-2024:10791
Red Hat Enterprise Linux 9postgresql-serverFixed0:13.18-1.el9_5RHSA-2024:10787
Red Hat Enterprise Linux 9postgresql-server-develFixed0:16.6-1.module+el9.5.0+22557+8cb08ba5RHSA-2024:10791
Red Hat Enterprise Linux 9postgresql-staticFixed0:15.10-1.module+el9.5.0+22558+abb1a50bRHSA-2024:10791
Red Hat Enterprise Linux 9postgresql-testFixed0:15.10-1.module+el9.5.0+22558+abb1a50bRHSA-2024:10791
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosFixed0:15.10-1.module+el9.5.0+22558+abb1a50bRHSA-2024:10788
Red Hat Enterprise Linux 9postgresql-upgradeFixed0:16.6-1.module+el9.5.0+22557+8cb08ba5RHSA-2024:10791
Red Hat Enterprise Linux 9postgresql-upgrade-develFixed0:13.18-1.el9_5RHSA-2024:10787
Red Hat Enterprise Linux 8pg_repackFixed0:1.4.6-3.module+el8.9.0+19330+c97ddbdfRHSA-2024:10830
Red Hat Enterprise Linux 8pgauditFixed0:16.0-1.module+el8.10.0+20413+d8116364RHSA-2024:10830
Red Hat Enterprise Linux 8postgres-decoderbufsFixed0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2024:10785
Red Hat Enterprise Linux 8postgresqlFixed0:16.6-1.module+el8.10.0+22551+c0330dc9RHSA-2024:10832
Red Hat Enterprise Linux 8postgresql-contribFixed0:13.18-1.module+el8.10.0+22549+cf2ec3d9RHSA-2024:10831
Red Hat Enterprise Linux 8postgresql-docsFixed0:13.18-1.module+el8.10.0+22549+cf2ec3d9RHSA-2024:10831
Red Hat Enterprise Linux 8postgresql-plperlFixed0:16.6-1.module+el8.10.0+22551+c0330dc9RHSA-2024:10785
Red Hat Enterprise Linux 8postgresql-plpython3Fixed0:16.6-1.module+el8.10.0+22551+c0330dc9RHSA-2024:10832
Red Hat Enterprise Linux 8postgresql-pltclFixed0:12.22-1.module+el8.10.0+22548+dd326681RHSA-2024:10832
Red Hat Enterprise Linux 8postgresql-private-develFixed0:16.6-1.module+el8.10.0+22551+c0330dc9RHSA-2024:10830
Red Hat Enterprise Linux 8postgresql-private-libsFixed0:15.10-1.module+el8.10.0+22550+22c7d5caRHSA-2024:10831
Red Hat Enterprise Linux 8postgresql-serverFixed0:15.10-1.module+el8.10.0+22550+22c7d5caRHSA-2024:10785
Red Hat Enterprise Linux 8postgresql-server-develFixed0:12.22-1.module+el8.10.0+22548+dd326681RHSA-2024:10832
Red Hat Enterprise Linux 8postgresql-staticFixed0:15.10-1.module+el8.10.0+22550+22c7d5caRHSA-2024:10831
Red Hat Enterprise Linux 8postgresql-testFixed0:15.10-1.module+el8.10.0+22550+22c7d5caRHSA-2024:10831
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFixed0:15.10-1.module+el8.10.0+22550+22c7d5caRHSA-2024:10832
Red Hat Enterprise Linux 8postgresql-upgradeFixed0:12.22-1.module+el8.10.0+22548+dd326681RHSA-2024:10830
Red Hat Enterprise Linux 8postgresql-upgrade-develFixed0:16.6-1.module+el8.10.0+22551+c0330dc9RHSA-2024:10832
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
AlmaLinux 9pg_repackFixed1.4.8-2.module_el9.5.0+120+4533eb20ALSA-2024:10788
AlmaLinux 9pgauditFixed16.0-1.module_el9.4.0+66+eb9878bcALSA-2024:10787
AlmaLinux 9pgvectorFixed0.6.2-1.module_el9.5.0+120+4533eb20ALSA-2024:10788
AlmaLinux 9postgres-decoderbufsFixed1.9.7-1.Final.module_el9.3.0+52+21733919ALSA-2024:10788
AlmaLinux 9postgresqlFixed13.18-1.el9_5ALSA-2024:10788
AlmaLinux 9postgresql-contribFixed16.6-1.module_el9.5.0+127+50ff03a9ALSA-2024:10788
AlmaLinux 9postgresql-docsFixed13.18-1.el9_5ALSA-2024:10787
AlmaLinux 9postgresql-plperlFixed13.18-1.el9_5ALSA-2024:10788
AlmaLinux 9postgresql-plpython3Fixed16.6-1.module_el9.5.0+128+1095dce2ALSA-2024:10788
AlmaLinux 9postgresql-pltclFixed13.18-1.el9_5ALSA-2024:10787
AlmaLinux 9postgresql-private-develFixed16.6-1.module_el9.5.0+127+50ff03a9ALSA-2024:10788
AlmaLinux 9postgresql-private-libsFixed13.18-1.el9_5ALSA-2024:10787
AlmaLinux 9postgresql-serverFixed13.18-1.el9_5ALSA-2024:10788
AlmaLinux 9postgresql-server-develFixed16.6-1.module_el9.5.0+127+50ff03a9ALSA-2024:10791
AlmaLinux 9postgresql-staticFixed15.10-1.module_el9.5.0+126+03d48c9fALSA-2024:10788
AlmaLinux 9postgresql-testFixed16.6-1.module_el9.5.0+128+1095dce2ALSA-2024:10788
AlmaLinux 9postgresql-test-rpm-macrosFixed16.6-1.module_el9.5.0+127+50ff03a9ALSA-2024:10791
AlmaLinux 9postgresql-upgradeFixed13.18-1.el9_5ALSA-2024:10787
AlmaLinux 9postgresql-upgrade-develFixed13.18-1.el9_5ALSA-2024:10788
AlmaLinux 8pg_repackFixed1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2024:10832
AlmaLinux 8pgauditFixed16.0-1.module_el8.10.0+3798+606ebb9fALSA-2024:10832
AlmaLinux 8postgres-decoderbufsFixed0.10.0-2.module_el8.9.0+3704+f1f917ceALSA-2024:10785
AlmaLinux 8postgresqlFixed16.6-1.module_el8.10.0+3930+ecf33554ALSA-2024:10830
AlmaLinux 8postgresql-contribFixed16.6-1.module_el8.10.0+3930+ecf33554ALSA-2024:10832
AlmaLinux 8postgresql-docsFixed13.18-1.module_el8.10.0+3928+8233d274ALSA-2024:10831
AlmaLinux 8postgresql-plperlFixed15.10-1.module_el8.10.0+3929+38258aa5ALSA-2024:10785
AlmaLinux 8postgresql-plpython3Fixed15.10-1.module_el8.10.0+3929+38258aa5ALSA-2024:10831
AlmaLinux 8postgresql-pltclFixed15.10-1.module_el8.10.0+3929+38258aa5ALSA-2024:10832
AlmaLinux 8postgresql-private-develFixed16.6-1.module_el8.10.0+3930+ecf33554ALSA-2024:10830
AlmaLinux 8postgresql-private-libsFixed15.10-1.module_el8.10.0+3929+38258aa5ALSA-2024:10831
AlmaLinux 8postgresql-serverFixed16.6-1.module_el8.10.0+3930+ecf33554ALSA-2024:10830
AlmaLinux 8postgresql-server-develFixed15.10-1.module_el8.10.0+3929+38258aa5ALSA-2024:10832
AlmaLinux 8postgresql-staticFixed12.22-1.module_el8.10.0+3927+7f0fab70ALSA-2024:10832
AlmaLinux 8postgresql-testFixed12.22-1.module_el8.10.0+3927+7f0fab70ALSA-2024:10830
AlmaLinux 8postgresql-test-rpm-macrosFixed13.18-1.module_el8.10.0+3928+8233d274ALSA-2024:10831
AlmaLinux 8postgresql-upgradeFixed13.18-1.module_el8.10.0+3928+8233d274ALSA-2024:10830
AlmaLinux 8postgresql-upgrade-develFixed13.18-1.module_el8.10.0+3928+8233d274ALSA-2024:10830
Rocky Linux 9pg_repackFixed0:1.5.1-1.module+el9.5.0+30638+72f697e1RLSA-2024:10787
Rocky Linux 9pgauditFixed0:16.0-1.module+el9.5.0+30638+72f697e1RLSA-2024:10787
Rocky Linux 9pgvectorFixed0:0.6.2-1.module+el9.5.0+30638+72f697e1RLSA-2024:10788
Rocky Linux 9postgres-decoderbufsFixed0:1.9.7-1.Final.module+el9.5.0+30637+4391fccaRLSA-2024:10788
Rocky Linux 8pg_repackFixed0:1.4.6-3.module+el8.10.0+1862+29bef648RLSA-2024:10785
Rocky Linux 8pgauditFixed0:1.4.0-7.module+el8.9.0+1735+a332307bRLSA-2024:10831
Rocky Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.10.0+1862+29bef648RLSA-2024:10830
Rocky Linux 8postgresqlFixed0:13.18-1.module+el8.10.0+1898+8409d9aeRLSA-2024:10830
Alpine Linux 3.24postgresql16Fixed16.5-r0ALPINE-CVE-2024-10979
Alpine Linux 3.24postgresql17Fixed17.1-r0ALPINE-CVE-2024-10979
Alpine Linux 3.23postgresql16Fixed16.5-r0ALPINE-CVE-2024-10979
Alpine Linux 3.23postgresql17Fixed17.1-r0ALPINE-CVE-2024-10979
Alpine Linux 3.22postgresql15Fixed15.9-r0ALPINE-CVE-2024-10979
Alpine Linux 3.22postgresql16Fixed16.5-r0ALPINE-CVE-2024-10979
Alpine Linux 3.22postgresql17Fixed17.1-r0ALPINE-CVE-2024-10979
Alpine Linux 3.21postgresql15Fixed15.9-r0ALPINE-CVE-2024-10979
Alpine Linux 3.21postgresql16Fixed16.5-r0ALPINE-CVE-2024-10979
Alpine Linux 3.21postgresql17Fixed17.1-r0ALPINE-CVE-2024-10979
Alpine Linux 3.20postgresql14Fixed14.14-r0ALPINE-CVE-2024-10979
Alpine Linux 3.20postgresql15Fixed15.9-r0ALPINE-CVE-2024-10979
Alpine Linux 3.20postgresql16Fixed16.5-r0ALPINE-CVE-2024-10979
Alpine Linux 3.19postgresql13Fixed13.17-r0ALPINE-CVE-2024-10979
Alpine Linux 3.19postgresql14Fixed14.14-r0ALPINE-CVE-2024-10979
Alpine Linux 3.19postgresql15Fixed15.9-r0ALPINE-CVE-2024-10979
Alpine Linux 3.19postgresql16Fixed16.5-r0ALPINE-CVE-2024-10979
Alpine Linux 3.18postgresql13Fixed13.17-r0ALPINE-CVE-2024-10979
Alpine Linux 3.18postgresql14Fixed14.14-r0ALPINE-CVE-2024-10979
Alpine Linux 3.18postgresql15Fixed15.9-r0ALPINE-CVE-2024-10979
Alpine Linux 3.17postgresql13Fixed13.17-r0ALPINE-CVE-2024-10979
Alpine Linux 3.17postgresql14Fixed14.14-r0ALPINE-CVE-2024-10979
Alpine Linux 3.17postgresql15Fixed15.9-r0ALPINE-CVE-2024-10979

What the vendor says

As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.