CVE-2024-10979

PostgreSQL PL/Perl environment variable changes execute arbitrary code

State
Published
Severity
8.8 High
Published
Nov 14, 2024
Updated
Nov 3, 2025
Reserved
Nov 7, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HPostgreSQL

Weaknesses

  • CWE-15 External Control of System or Configuration Setting

Affected Products

ProductVersions
PostgreSQLn/a
  • 17 to before 17.1Affected
  • 16 to before 16.5Affected
  • 15 to before 15.9Affected
  • 14 to before 14.14Affected
  • 13 to before 13.17Affected
  • before 12.21Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.