CVE-2024-10979 in Postgresql
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Postgresql | Postgresql | ≥ 12.0, < 12.21 ≥ 13.0, < 13.17 ≥ 14.0, < 14.14 ≥ 15.0, < 15.9 ≥ 16.0, < 16.5 ≥ 17.0, < 17.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-10979 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-181890-H |
| CVSS 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 | 2025-11-03 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-15: CWE-15
CWE-610: CWE-610
Related attack patterns (CAPEC)
CAPEC-13 Subverting Environment Variable Values via CWE-15
CAPEC-76 Manipulating Web Input to File System Calls via CWE-15
CAPEC-146 XML Schema Poisoning via CWE-15
CAPEC-270 Modification of Registry Run Keys via CWE-15
CAPEC-579 Replace Winlogon Helper DLL via CWE-15
Show all 11
CAPEC-69 Target Programs with Elevated Privileges via CWE-15
CAPEC-77 Manipulating User-Controlled Variables via CWE-15
CAPEC-203 Manipulate Registry Information via CWE-15
CAPEC-219 XML Routing Detour Attacks via CWE-610
CAPEC-271 Schema Poisoning via CWE-15
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A high severity vulnerability affects Postgresql systems (CVE-2024-10979). No public exploit code is currently available. Apply available vendor patches promptly.
Vulnerability details: 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. CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Questions
What is CVE-2024-10979?
A high severity vulnerability affects Postgresql systems (CVE-2024-10979). No public exploit code is currently available. Apply available vendor patches promptly.
What is the CVSS score for CVE-2024-10979?
CVE-2024-10979 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.4%.
Is CVE-2024-10979 actively exploited?
No confirmed active exploitation of CVE-2024-10979 as of 2026-05-30.
How do I remediate CVE-2024-10979?
Priority: MEDIUM. Advisory: https://www.postgresql.org/support/security/CVE-2024-10979/ PSIRT: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
What systems are affected by CVE-2024-10979?
CVE-2024-10979 affects Postgresql Postgresql.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Postgresql","product":"Postgresql","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-11-03.