CVE-2024-10979PostgreSQL PL/Perl environment variable changes execute arbitrary code
- 8.8HighCVSS base score
- 4.4%Exploitation in 30 daysEPSS · top 8.5% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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
ID reserved
By PostgreSQL
- 7 days later
· 7 days later
Published
- 12 months later
· 12 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| PostgreSQLCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.4% · top 8.5% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
PostgreSQL
- affected 17 – < 17.1
- affected 16 – < 16.5
- affected 15 – < 15.9
- affected 14 – < 14.14
- affected 13 – < 13.17
- affected < 12.21
References
References4
- https://www.postgresql.org/support/security/CVE-2024-10979/ (opens in a new tab)
- https://github.com/fmora50591/postgresql-env-vuln/blob/main/README.md (opens in a new tab)
- https://security.netapp.com/advisory/ntap-20250110-0003/ (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-33389 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-10979)Record last updated .