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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 12.21, 13.17, 14.14, 15.9, 16.5, 17.1 (CNA); fix release not confirmed
- Status: published
- Published: 2024-11-14 · Modified: 2025-11-03
- Aliases: ALPINE-CVE-2024-10979, RHSA-2024:10593, RHSA-2024:10595, RHSA-2024:10677, RHSA-2024:10705, RHSA-2024:10736, RHSA-2024:10739, RHSA-2024:10750, RHSA-2024:10789, RHSA-2024:10800, RHSA-2024:10807, RHSA-2024:10827, RHSA-2024:10846, RHSA-2024:10851, RHSA-2024:10879, RHSA-2024:10882, UBUNTU-CVE-2024-10979, DEBIAN-CVE-2024-10979, CGA-22c5-wj99-fw5w, CGA-74v5-g944-jq23, CGA-7584-gm58-jwcr, CGA-7jwq-h5mm-p7vr, CGA-7mm7-v329-9jf9, CGA-f2gx-rfcw-29mw, CGA-gwv5-x2xq-x985, CGA-h4rg-pf22-3wfw, CGA-hf5g-hw8m-h829, CGA-j3r8-fv7f-gq3f, CGA-p5w9-pmc5-7fhq, CGA-qf2j-fmf7-49hq, CGA-r3gp-7j69-3vw9, CGA-x96q-xvp6-8vr7, CGA-xwfj-q78j-fq36
- Record: https://cvemate.com/vulnerability/CVE-2024-10979 · JSON: https://cvemate.com/vulnerability/CVE-2024-10979/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 4.393%, percentile 91.573%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 70)

- alpine postgresql13 (Alpine Linux): \< 13.17-r0
- alpine postgresql14 (Alpine Linux): \< 14.14-r0
- alpine postgresql15 (Alpine Linux): \< 15.9-r0
- alpine postgresql16 (Alpine Linux): \< 16.5-r0
- alpine postgresql17 (Alpine Linux): \< 17.1-r0
- chainguard postgresql-12 (Chainguard): \< 12.21-r0
- chainguard postgresql-13 (Chainguard): \< 13.17-r0
- chainguard postgresql-14 (Chainguard): \< 14.14-r0
- chainguard postgresql-14-client (Chainguard): All versions (No fix recorded) \| \< 14.24-r2
- chainguard postgresql-15 (Chainguard): \< 15.9-r0
- chainguard postgresql-15-client (Chainguard): \< 15.19-r2
- chainguard postgresql-16 (Chainguard): \< 16.5-r0
- chainguard postgresql-17 (Chainguard): \< 17.1-r0
- wolfi postgresql-12 (Wolfi): \< 12.21-r0
- wolfi postgresql-13 (Wolfi): \< 13.17-r0
- wolfi postgresql-14 (Wolfi): \< 14.14-r0
- wolfi postgresql-14-client (Wolfi): All versions (No fix recorded) \| \< 14.24-r2
- wolfi postgresql-15 (Wolfi): \< 15.9-r0
- wolfi postgresql-15-client (Wolfi): \< 15.19-r2
- wolfi postgresql-16 (Wolfi): \< 16.5-r0

## References (first 20 of 44)

- <https://www.postgresql.org/support/security/CVE-2024-10979/>
- <https://github.com/fmora50591/postgresql-env-vuln/blob/main/README.md>
- <https://security.netapp.com/advisory/ntap-20250110-0003/>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html>
- <https://security.alpinelinux.org/vuln/CVE-2024-10979>
- <https://access.redhat.com/errata/RHSA-2024:10593>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2326253>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_10593.json>
- <https://access.redhat.com/security/cve/CVE-2024-10979>
- <https://www.cve.org/CVERecord?id=CVE-2024-10979>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-10979>
- <https://access.redhat.com/errata/RHSA-2024:10595>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_10595.json>
- <https://access.redhat.com/errata/RHSA-2024:10677>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_10677.json>
- <https://access.redhat.com/errata/RHSA-2024:10705>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_10705.json>
- <https://access.redhat.com/errata/RHSA-2024:10736>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_10736.json>

---

Data as of 2026-12-05T04:23:54.317Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
