CVE-2024-10979
PostgreSQL PL/Perl environment variable changes execute arbitrary code
Reported by postgresql · Published November 14, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql-test | Amazon Linux | 9.2.24-8.amzn2.0.5 |
| postgresql16 | Amazon Linux | 16.5-1.amzn2023.0.1 |
| postgresql-server | Amazon Linux | 9.2.24-8.amzn2.0.5 |
| postgresql-docs | Amazon Linux | 9.2.24-8.amzn2.0.5 |
| postgresql16-llvmjit | Amazon Linux | 16.5-1.amzn2023.0.1 |
| postgresql-14 | Chainguard | 14.24-r2, 14.14-r0 |
| postgresql15-plpython3 | Amazon Linux | 15.9-1.amzn2023.0.1 |
| postgresql16-server-devel | Amazon Linux | 16.5-1.amzn2023.0.1 |
| postgresql-13 | Chainguard | 13.17-r0 |
| postgresql16-static | Amazon Linux | 16.5-1.amzn2023.0.1 |
| postgresql15-static | Amazon Linux | 15.9-1.amzn2023.0.1 |
| postgresql-16 | Chainguard | 16.5-r0 |
53 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | PostgreSQL | 17, 16, 15 |
| postgresql | postgresql | 0, 13, 14 |
| n/a | PostgreSQL | 17, 16, 15 |
Timeline
- Nov 14, 2024 Coalition ESS Score (15 in total, the first dated here)
- Nov 14, 2024 CVE Published
- Nov 14, 2024 PoC Published (14 in total, the first dated here)
- Nov 15, 2024 EPSS Score (30 in total, the first dated here)
- Jan 22, 2026 CVE Updated
- Jun 2, 2026 Security Advisory (33 in total, the first dated here)
- Oct 23, 2026 Distribution Patch (23 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-10979
vulnetix vdb fixes CVE-2024-10979
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-10979/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart