VDB

CVE-2024-10979

CVE-2024-10979 PUBLISHED CVSS 8.8 HIGH

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.

PackageEcosystemFixed in
postgresql-testAmazon Linux9.2.24-8.amzn2.0.5
postgresql16Amazon Linux16.5-1.amzn2023.0.1
postgresql-serverAmazon Linux9.2.24-8.amzn2.0.5
postgresql-docsAmazon Linux9.2.24-8.amzn2.0.5
postgresql16-llvmjitAmazon Linux16.5-1.amzn2023.0.1
postgresql-14Chainguard14.24-r2, 14.14-r0
postgresql15-plpython3Amazon Linux15.9-1.amzn2023.0.1
postgresql16-server-develAmazon Linux16.5-1.amzn2023.0.1
postgresql-13Chainguard13.17-r0
postgresql16-staticAmazon Linux16.5-1.amzn2023.0.1
postgresql15-staticAmazon Linux15.9-1.amzn2023.0.1
postgresql-16Chainguard16.5-r0

53 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/aPostgreSQL17, 16, 15
postgresqlpostgresql0, 13, 14
n/aPostgreSQL17, 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›