Security Resilience

CVE-2024-10979

Postgresql 12.0 – 12.21

Public PoC
Published
14 November 2024
Modified
03 November 2025
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.044 92th percentile
Risk Priority 75 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-10979 is a high-severity External Control of System or Configuration Setting (CWE-15) vulnerability in Postgresql. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Startup Items (T1037.005); ranked in the top 8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2024-10979 is an incorrect control of environment variables vulnerability in PostgreSQL's PL/Perl extension. It affects all versions prior to 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21, allowing modification of sensitive process variables such as PATH. The flaw is tracked under CWE-15 and CWE-610 and carries a CVSS 3.1 score of 8.8.

An unprivileged database user can exploit the issue over the network to alter environment variables and achieve arbitrary code execution on the underlying operating system, without requiring a local server account. The attack requires low complexity and no user interaction, enabling privilege escalation from database access to host-level control.

Official advisories from PostgreSQL, Debian LTS, and NetApp direct users to apply the listed patched releases immediately. They also recommend reviewing and restricting PL/Perl usage for untrusted roles and limiting environment-variable inheritance where feasible.

EPSS for the CVE rose from a low baseline to a peak of 0.1571 on 2025-12-11 before receding to the current value of 0.0636, indicating a period of increased exploitation interest after disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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.…

more

Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1037.005 Startup Items Persistence
Adversaries may use startup items automatically executed at boot initialization to establish persistence.
T1112 Modify Registry Defense Impairment
Adversaries may interact with the Windows Registry as part of a variety of other techniques to aid in defense evasion, persistence, and execution.
T1137.002 Office Test Persistence
Adversaries may abuse the Microsoft Office "Office Test" Registry key to obtain persistence on a compromised system.
T1137.004 Outlook Home Page Persistence
Adversaries may abuse Microsoft Outlook's Home Page feature to obtain persistence on a compromised system.
T1547.001 Registry Run Keys / Startup Folder Persistence
Adversaries may achieve persistence by adding a program to a startup folder or referencing it with a Registry run key.
T1547.004 Winlogon Helper DLL Persistence
Adversaries may abuse features of Winlogon to execute DLLs and/or executables when a user logs in.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-18408Same product: Postgresql Postgresql
CVE-2026-6464Same product: Postgresql Postgresql
CVE-2024-7348Same product: Postgresql Postgresql
CVE-2026-6637Same product: Postgresql Postgresql
CVE-2026-6476Same product: Postgresql Postgresql
CVE-2026-6638Same product: Postgresql Postgresql
CVE-2026-15741Same product: Postgresql Postgresql
CVE-2024-10977Same product: Postgresql Postgresql
CVE-2026-6475Same product: Postgresql Postgresql
CVE-2026-6477Same product: Postgresql Postgresql

Affected Assets

postgresql
postgresql
12.0 — 12.21 · 13.0 — 13.17 · 14.0 — 14.14

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 4 hardening rules · 2 OS baselines
Validate
Prove the fix (OWASP ASVS)

—

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Enforces approved authorizations for logical access to configuration resources so external parties cannot alter them.

Enforces documented access restrictions on all changes to system configuration, directly blocking unauthorized external control of settings.

Controls information flow between security domains, blocking resolution of external references to unintended spheres.

Limits privileges to the minimum needed, reducing the set of users who can externally modify configuration.

Validates information inputs, directly stopping externally controlled names or references from being accepted.

Monitors and controls boundary communications, limiting the ability of external references to reach protected resources.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-01 mostly match
blocks

Hardened configuration baselines and change controls directly limit external manipulation of settings.

ID.RA-07 partial match
blocks

Formal change and exception management catches externally driven configuration alterations.

PR.AA-05 partial match
blocks

Least-privilege access policies reduce unauthorized external modification of configuration values.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

blocks

Privileged access rights reduce the number of users who can alter configuration.

finds

A.8.29's combined programme of code review, vulnerability scanning, and penetration testing discovers externally-controlled configuration settings in both first-party code and acquired products, but a nameable remainder exists in settings that are only exploitable through complex, multi-step attack chains that standard penetration testing may not uncover.

blocks

Configuration management directly prevents external tampering with system settings.

prevents

Training developers about secure coding practices can reduce instances where they pass untrusted input directly to system configuration functions (sethostid, setCatalog, etc.), but this is an implementation-level defect that depends on developer skill and attention; the practice is fallible and a different clause (e.g., A.8.28 secure coding, A.8.29 security testing) carries the stronger effect, matching the A.6.3 -> CWE-598 anchor.

blocks

Use of privileged utility programs is controlled to prevent misuse of configuration tools.

prevents

A.8.28's secure coding principles (threat modelling, secure design, prohibited insecure techniques, analysis of common programming errors) directly target the pattern of allowing external input to govern system settings, but the control mandates a practice whose effect depends on developer rigour, so it catches a minority of instances the way it does for CWE-502 and CWE-79.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-610, a class-level weakness, and none of its children carries one either.

References