CVE-2024-10979
No exploitation reported by the sources we read.
- Published2024-11-14
- Fixed in17.1 · 16.5 · 15.9 · 14.14 · 13.17 · 12.21
- WeaknessCWE-15 · CWE-610
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2024-11-1413:15CVE publishedNVD
Versions per branch
NVD · CISA-ADP · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 17.x | ≥ 17.0, < 17.1 | 17.1 | NVD |
| 17.x | ≥ 17, < 17.1 | 17.1 | CISA-ADP |
| 16.x | ≥ 16.0, < 16.5 | 16.5 | NVD |
| 16.x | ≥ 16, < 16.5 | 16.5 | CISA-ADP |
| 15.x | ≥ 15.0, < 15.9 | 15.9 | NVD |
| 15.x | ≥ 15, < 15.9 | 15.9 | CISA-ADP |
| 14.x | ≥ 14.0, < 14.14 | 14.14 | NVD |
| 14.x | ≥ 14, < 14.14 | 14.14 | CISA-ADP |
| 13.x | ≥ 13.0, < 13.17 | 13.17 | NVD |
| 13.x | ≥ 13, < 13.17 | 13.17 | CISA-ADP |
| 12.x | ≥ 12.0, < 12.21 | 12.21 | NVD |
| 12.21 | < 12.21 | 12.21 | CISA-ADP |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 17.x | ≥ 17.0.0, < 17.1.0 | 17.1.0 | OSV |
| 16.x | ≥ 16.0.0, < 16.5.0 | 16.5.0 | OSV |
| 15.x | ≥ 15.0.0, < 15.9.0 | 15.9.0 | OSV |
| 14.x | ≥ 14.0.0, < 14.14.0 | 14.14.0 | OSV |
| 13.17 | < 13.17.0 | 13.17.0 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As PostgreSQL, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- PostgreSQLother versions: not affectedAffected
- ≥ 17, < 17.1fixed in 17.1rpm
- ≥ 16, < 16.5fixed in 16.5rpm
- ≥ 15, < 15.9fixed in 15.9rpm
- ≥ 14, < 14.14fixed in 14.14rpm
- ≥ 13, < 13.17fixed in 13.17rpm
- < 12.21fixed in 12.21rpm
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-11-14
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- libpqopenEuler:24.03-LTSall versions · fixed in 15.9-1.oe2403and 1 other package
- libpqopenEuler:22.03-LTS-SP4all versions · fixed in 13.17-1.oe2203sp4and 1 other package
- libpqopenEuler:22.03-LTS-SP3all versions · fixed in 13.17-1.oe2203sp3and 1 other package
- libpqopenEuler:22.03-LTS-SP1all versions · fixed in 13.17-1.oe2203sp1and 1 other package
- libpq5TuxCare:Ubuntu:16.04all versions · fixed in 9.5.25-0ubuntu0.16.04.1+tuxcare.els12and 14 other packages
- pg_repackRocky Linux:9all versions · fixed in 0:1.4.8-2.module+el9.5.0+30637+4391fcca
- pg_repackRocky Linux:9all versions · fixed in 0:1.5.1-1.module+el9.5.0+30638+72f697e1
- pg_repackRocky Linux:8all versions · fixed in 0:1.4.6-3.module+el8.10.0+1862+29bef648
307 more package ranges on OSV.dev
Vendor advisories
postgresql: PostgreSQL PL/Perl environment variable changes execute arbitrary code
postgresql as a component of Red Hat Enterprise Linux 6 · postgresql-contrib as a component of Red Hat Enterprise Linux 6 · postgresql-devel as a component of Red Hat Enterprise Linux 6 · +8 more
Red Hat Security Advisory: postgresql security update
Red Hat Security Advisory: postgresql:13 security update
Red Hat Security Advisory: postgresql:15 security update
Red Hat Security Advisory: postgresql:13 security update
Red Hat Security Advisory: postgresql:16 security update
17 more advisories
Fix
- Update PostgreSQL to 17.1 · 16.5 · 15.9 · 14.14 · 13.17 · 12.21
- Vendor fix Red Hat Product Security RHSA-2024:10882 · 75 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2024:10879 · 161 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2024:10882 · 75 productsCurrently 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…
Advisories and patches
- www.postgresql.orgVendor Advisory
- github.comMitigation
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2024-11-20
- CNACVSS 3.18.8known since 2026-10-23
- NVDCVSS 3.18.8read 2026-10-23
- CNAweakness (CWE)CWE-15known since 2026-10-23
- NVDweakness (CWE)CWE-610read 2026-10-23
- FIRST EPSSEPSS score4.4 %2026-12-04
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-53198same flawAzure Linux · MIT
- AZL-53212same flawAzure Linux · MIT
- BIT-postgresql-2024-10979same flawBitnami · Apache-2.0
- CGA-22c5-wj99-fw5wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-74v5-g944-jq23same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7584-gm58-jwcrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7jwq-h5mm-p7vrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7mm7-v329-9jf9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f2gx-rfcw-29mwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gwv5-x2xq-x985same flawChainguard · CC-BY-NC-ND-4.0
- CGA-h4rg-pf22-3wfwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hf5g-hw8m-h829same flawChainguard · CC-BY-NC-ND-4.0
- CGA-j3r8-fv7f-gq3fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p5w9-pmc5-7fhqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qf2j-fmf7-49hqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-r3gp-7j69-3vw9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-x96q-xvp6-8vr7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-xwfj-q78j-fq36same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-33389same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-2r9h-x757-8j9qsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2026-50same flawJulia Security Advisories · CC-BY-4.0
- MINI-85xw-qcmq-j9rhsame flawMinimOS · LicenseRef-unstated
- MINI-cxpm-cwp3-m6w2same flawMinimOS · LicenseRef-unstated
- MINI-x674-c4fr-r575same flawMinimOS · LicenseRef-unstated
- ALSA-2024:10785advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:10787advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:10788advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:10791advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:10830advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:10831advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:10832advisory covering several CVEsAlmaLinux · MIT
- DLA-3954-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5812-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2024-0372advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2024-2427advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2428advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2429advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2430advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2466advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2467advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2468advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2469advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1335advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:14501-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14502-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14503-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14504-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14505-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14506-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:12654-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2024-11-14
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-2r9h-x757-8j9q
Frequently asked questions
What is CVE-2024-10979?
Is CVE-2024-10979 actively exploited?
What is the CVSS score for CVE-2024-10979?
Running PostgreSQL? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-2r9h-x757-8j9q
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0