Skip to main content
No exploitation reportedFix available

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?

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
  1. 2024-11-1413:15CVE publishedNVD

Versions per branch

NVD · CISA-ADP · OSV
PostgreSQL
BranchAffectedFixed in
17.x≥ 17.0, < 17.117.1
17.x≥ 17, < 17.117.1
16.x≥ 16.0, < 16.516.5
16.x≥ 16, < 16.516.5
15.x≥ 15.0, < 15.915.9
15.x≥ 15, < 15.915.9
14.x≥ 14.0, < 14.1414.14
14.x≥ 14, < 14.1414.14
13.x≥ 13.0, < 13.1713.17
13.x≥ 13, < 13.1713.17
12.x≥ 12.0, < 12.2112.21
12.21< 12.2112.21
postgresql
BranchAffectedFixed in
17.x≥ 17.0.0, < 17.1.017.1.0
16.x≥ 16.0.0, < 16.5.016.5.0
15.x≥ 15.0.0, < 15.9.015.9.0
14.x≥ 14.0.0, < 14.14.014.14.0
13.17< 13.17.013.17.0

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 affected
    Affected
    • ≥ 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

  • CVE-2024-10979 Red Hat Product Security3,121 products fixed · 11 known affected

    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

  • RHSA-2024:10882 Red Hat Product Security75 products fixed

    Red Hat Security Advisory: postgresql security update

  • RHSA-2024:10879 Red Hat Product Security161 products fixed

    Red Hat Security Advisory: postgresql:13 security update

  • RHSA-2024:10851 Red Hat Product Security149 products fixed

    Red Hat Security Advisory: postgresql:15 security update

  • RHSA-2024:10846 Red Hat Product Security132 products fixed

    Red Hat Security Advisory: postgresql:13 security update

  • RHSA-2024:10831 Red Hat Product Security149 products fixed

    Red Hat Security Advisory: postgresql:16 security update

17 more advisories

Full record on NVD

Fix

  1. Update PostgreSQL to 17.1 · 16.5 · 15.9 · 14.14 · 13.17 · 12.21
  2. 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
  3. 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
  4. 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

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
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

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?

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.

Is CVE-2024-10979 actively exploited?

Active exploitation of CVE-2024-10979 has not been confirmed. Its EPSS score was 4.4% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-10979?

CVE-2024-10979 has a CVSS v3 base score of 8.8 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record