Vulnerabilities

CVE-2024-10979

High 8.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2024-11-14
Last modified
2026-06-17
Assigned by
f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
4.4 % higher than 90 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Postgresql Postgresql ≥ 12.0, < 12.21 Affected
Postgresql Postgresql ≥ 13.0, < 13.17 Affected
Postgresql Postgresql ≥ 14.0, < 14.14 Affected
Postgresql Postgresql ≥ 15.0, < 15.9 Affected
Postgresql Postgresql ≥ 16.0, < 16.5 Affected
Postgresql Postgresql ≥ 17.0, < 17.1 Affected

Weakness type

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1112: Modify Registry defense-impairment, persistence
  • T1547.001: Registry Run Keys / Startup Folder persistence, privilege-escalation
  • T1547.004: Winlogon Helper DLL persistence, privilege-escalation
  • T1547.014: Active Setup persistence, privilege-escalation
  • T1574.006: Dynamic Linker Hijacking stealth, execution
  • T1574.007: Path Interception by PATH Environment Variable stealth, execution
  • T1647: Plist File Modification defense-impairment

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities